Debian Codegraph @

tests/languages/jexl/number_feature.test

raw
1 42
2 3.14159
3 -5.7
4
5 ----------------------------------------------------
6
7 [
8 ["number", "42"],
9 ["number", "3.14159"],
10 ["operator", "-"], ["number", "5.7"]
11 ]
12
13 ----------------------------------------------------
14
15 Checks for integers and floats. Negative numbers are handled differently than in Jexl for simplicity: In Jexl, the minus sign in "-1" is parsed as an operator in "1-1" and as part of the number literal in ("-1").