Skip to content

Commit

Permalink
Added u128::MAX tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Sep 17, 2023
1 parent dea8b5d commit b9b8663
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions minijinja/tests/inputs/literals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
{{ -9223372036854775808 }}
{{ -170141183460469231731687303715884105728 }}
{{ 170141183460469231731687303715884105727 }}
{{ 340282366920938463463374607431768211455 }}
1 change: 1 addition & 0 deletions minijinja/tests/lexer-inputs/literals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
{{ -9223372036854775808 }}
{{ -170141183460469231731687303715884105728 }}
{{ 170141183460469231731687303715884105727 }}
{{ 340282366920938463463374607431768211455 }}
10 changes: 9 additions & 1 deletion minijinja/tests/snapshots/test_lexer__lexer@literals.txt.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
source: minijinja/tests/test_lexer.rs
description: "{{ true }}\n{{ false }}\n{{ null }}\n{{ 1.0 }}\n{{ 2 }}\n{{ [1, 2, 3] }}\n{{ {\"foo\": \"bar\"} }}\n{{ -9223372036854775808 }}\n{{ -170141183460469231731687303715884105728 }}\n{{ 170141183460469231731687303715884105727 }}"
description: "{{ true }}\n{{ false }}\n{{ null }}\n{{ 1.0 }}\n{{ 2 }}\n{{ [1, 2, 3] }}\n{{ {\"foo\": \"bar\"} }}\n{{ -9223372036854775808 }}\n{{ -170141183460469231731687303715884105728 }}\n{{ 170141183460469231731687303715884105727 }}\n{{ 340282366920938463463374607431768211455 }}"
input_file: minijinja/tests/lexer-inputs/literals.txt
---
VariableStart
Expand Down Expand Up @@ -107,4 +107,12 @@ VariableEnd
"}}"
TemplateData("\n")
"\n"
VariableStart
"{{"
Int128(340282366920938463463374607431768211455)
"340282366920938463463374607431768211455"
VariableEnd
"}}"
TemplateData("\n")
"\n"

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
source: minijinja/tests/test_templates.rs
description: "{{ true }}\n{{ false }}\n{{ null }}\n{{ 1.0 }}\n{{ 2 }}\n{{ [1, 2, 3] }}\n{{ {\"foo\": \"bar\"} }}\n{{ -9223372036854775808 }}\n{{ -170141183460469231731687303715884105728 }}\n{{ 170141183460469231731687303715884105727 }}"
description: "{{ true }}\n{{ false }}\n{{ null }}\n{{ 1.0 }}\n{{ 2 }}\n{{ [1, 2, 3] }}\n{{ {\"foo\": \"bar\"} }}\n{{ -9223372036854775808 }}\n{{ -170141183460469231731687303715884105728 }}\n{{ 170141183460469231731687303715884105727 }}\n{{ 340282366920938463463374607431768211455 }}"
info: {}
input_file: minijinja/tests/inputs/literals.txt
---
Expand All @@ -14,4 +14,5 @@ false
-9223372036854775808
170141183460469231731687303715884105728
170141183460469231731687303715884105727
340282366920938463463374607431768211455

0 comments on commit b9b8663

Please sign in to comment.