aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/repeat.rs31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/repeat.rs b/src/repeat.rs
index 594d23e..8191500 100644
--- a/src/repeat.rs
+++ b/src/repeat.rs
@@ -147,20 +147,23 @@ mod tests
#[test]
fn for_each_opengl_command_impl_works()
{
- let registry = Registry::new(vec![
- Command::new(Prototype::new("glBindBuffer", "void"), vec![]),
- Command::new(
- Prototype::new("glActiveTexture", "void"),
- vec![
- Parameter::new("abc", "GLuint"),
- Parameter::new("xyz", "GLshort"),
- ],
- ),
- Command::new(
- Prototype::new("glDrawArrays", "GLint"),
- vec![Parameter::new("foo", "GLubyte")],
- ),
- ]);
+ let registry = Registry::new(
+ vec![
+ Command::new(Prototype::new("glBindBuffer", "void"), vec![]),
+ Command::new(
+ Prototype::new("glActiveTexture", "void"),
+ vec![
+ Parameter::new("abc", "GLuint"),
+ Parameter::new("xyz", "GLshort"),
+ ],
+ ),
+ Command::new(
+ Prototype::new("glDrawArrays", "GLint"),
+ vec![Parameter::new("foo", "GLubyte")],
+ ),
+ ],
+ [],
+ );
let ht = Punct::new('#', Spacing::Alone);