number_feature.test
924 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
46
47
48
49
50
51
(42)
(3.14159)
(3e5)
(0.8E-12)
(3.9e+2)
(0xbadface)
(0XBADFACE)
----------------------------------------------------
[
["expression", [
["punctuation", "("],
["number", "42"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "3.14159"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "3e5"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "0.8E-12"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "3.9e+2"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "0xbadface"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "0XBADFACE"],
["punctuation", ")"]
]]
]
----------------------------------------------------
Checks for numbers inside expressions.