diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2019-10-09 11:45:13 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2019-10-09 11:45:13 +0200 |
commit | 8c56de1e698253662ec3e9efeb5e20fc88eea0e9 (patch) | |
tree | 509b889da00032d4254c2c453c91463e4d04b91f /testing | |
parent | c82db307b0456e2a901599516b14f0d92e9cc682 (diff) | |
download | askama-8c56de1e698253662ec3e9efeb5e20fc88eea0e9.tar.gz askama-8c56de1e698253662ec3e9efeb5e20fc88eea0e9.tar.bz2 askama-8c56de1e698253662ec3e9efeb5e20fc88eea0e9.zip |
Limit test sensitivity to macro pretty printing output
See https://github.com/rust-lang/rust/issues/65207.
Diffstat (limited to 'testing')
-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()); } |