number_feature.test
742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{0xBadFace}
{42}
{3.14159}
{4e7}
{5.4E-3}
{2.0e+10}
----------------------------------------------------
[
["smarty", [
["delimiter", "{"],
["number", "0xBadFace"],
["delimiter", "}"]
]],
["smarty", [
["delimiter", "{"],
["number", "42"],
["delimiter", "}"]
]],
["smarty", [
["delimiter", "{"],
["number", "3.14159"],
["delimiter", "}"]
]],
["smarty", [
["delimiter", "{"],
["number", "4e7"],
["delimiter", "}"]
]],
["smarty", [
["delimiter", "{"],
["number", "5.4E-3"],
["delimiter", "}"]
]],
["smarty", [
["delimiter", "{"],
["number", "2.0e+10"],
["delimiter", "}"]
]]
]
----------------------------------------------------
Checks for numbers.