diff options
-rw-r--r-- | testing/templates/rust-macro-args.html | 17 | ||||
-rw-r--r-- | testing/tests/rust_macro.rs | 2 |
2 files changed, 4 insertions, 15 deletions
diff --git a/testing/templates/rust-macro-args.html b/testing/templates/rust-macro-args.html index b009a73..5e84852 100644 --- a/testing/templates/rust-macro-args.html +++ b/testing/templates/rust-macro-args.html @@ -1,26 +1,15 @@ {{ call_a_or_b_on_tail!( - (a: compute_len, b: zero), - the recursive part that skips over all these - tokens doesn't much care whether we will call a - or call b: only the terminal rules care. + (a: compute_len, b: zero), call b: only the terminal rules care. ) }} {{ call_a_or_b_on_tail!( - (a: compute_len, b: zero), - and now, to justify the existence of two paths - we will also call a: its input should somehow - be self-referential, so let's make it return - some ninety one! + (a: compute_len, b: zero), call a: some ninety one! ) }} {{ call_a_or_b_on_tail!( - (a: compute_len, b: zero), - and now, to justify the existence of two paths - we will also call a: its input should somehow - be self-referential, so let's make it return - some ninety "(\"()"nine! + (a: compute_len, b: zero), call a: some ninety "(\"()"nine! ) }} diff --git a/testing/tests/rust_macro.rs b/testing/tests/rust_macro.rs index b92bbeb..8d2543d 100644 --- a/testing/tests/rust_macro.rs +++ b/testing/tests/rust_macro.rs @@ -45,5 +45,5 @@ struct RustMacrosArgTemplate {} #[test] fn args() { let template = RustMacrosArgTemplate {}; - assert_eq!("0\n91\n99", template.render().unwrap()); + assert_eq!("0\n17\n25", template.render().unwrap()); } |