aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates/rust-macro-args.html
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2021-07-02 09:47:15 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-07-02 16:37:11 +0200
commite9badca2573a8e6f89e14a75446e1c890ebd843f (patch)
tree43ba50419c699dadc185c506805f0402bdac62f0 /testing/templates/rust-macro-args.html
parentc31fe5f3fc313ca539ff1f1c92cc1337a472e809 (diff)
downloadaskama-e9badca2573a8e6f89e14a75446e1c890ebd843f.tar.gz
askama-e9badca2573a8e6f89e14a75446e1c890ebd843f.tar.bz2
askama-e9badca2573a8e6f89e14a75446e1c890ebd843f.zip
Replace rust_macro test to work on nightly
The current rust_test uses `stringify!()`. The documentation gives us the warning: > Note that the expanded results of the input tokens may change in the > future. You should be careful if you rely on the output. In the current nightly rust the result was indeed changed, so the test not fails. This PR replaces the test with another macro, that does not depend on `stringify!()`. Closes issue #504.
Diffstat (limited to 'testing/templates/rust-macro-args.html')
-rw-r--r--testing/templates/rust-macro-args.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/templates/rust-macro-args.html b/testing/templates/rust-macro-args.html
index 9dca314..11aef54 100644
--- a/testing/templates/rust-macro-args.html
+++ b/testing/templates/rust-macro-args.html
@@ -1,3 +1,3 @@
-{{ call_a_or_b_on_tail!((a: compute_len, b: zero), call b: only the terminal rules care.) }}
-{{ call_a_or_b_on_tail!((a: compute_len, b: zero), call a: some ninety one!) }}
-{{ call_a_or_b_on_tail!((a: compute_len, b: zero), call a: some ninety "(\"()"nine!) }}
+{{ call_a_or_b_on_tail!((a: year, b: month, c: day), call a: 2021, "July", (0+2)) }}
+{{ call_a_or_b_on_tail!((a: year, b: month, c: day), call b: 2021, "July", (0+2)) }}
+{{ call_a_or_b_on_tail!((a: year, b: day, c: month), call b: 2021, "July", (0+2)) }}