Blame view

bower_components/prism/tests/languages/parigp/number_feature.test 652 Bytes
f748e9cf   Luigi Serra   new controllet an...
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
  0

  42

  1 2 3 4 5

  4.

  4 .

  .5

  . 5

  3.14159

  3 . 14 15 9

  3E8

  3 E 8

  2.0e-7

  2 . 0 e - 7

  .28e+12

  . 2 8 e + 1 2

  

  ----------------------------------------------------

  

  [

  	["number", "0"],

  	["number", "42"],

  	["number", "1 2 3 4 5"],

  	["number", "4."],

  	["number", "4 ."],

  	["number", ".5"],

  	["number", ". 5"],

  	["number", "3.14159"],

  	["number", "3 . 14 15 9"],

  	["number", "3E8"],

  	["number", "3 E 8"],

  	["number", "2.0e-7"],

  	["number", "2 . 0 e - 7"],

  	["number", ".28e+12"],

  	["number", ". 2 8 e + 1 2"]

  ]

  

  ----------------------------------------------------

  

  Checks for numbers. Also checks that whitespaces are ignored.