Blame view

bower_components/prism/tests/languages/go/number_feature.test 771 Bytes
eb240478   Luigi Serra   public room cards...
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
  42

  0600

  0xBadFace

  170141183460469231731687303715884105727

  72.40

  072.40

  2.71828

  1.e+0

  6.67428e-11

  1E6

  0i

  011i

  0.i

  2.71828i

  1.e+0i

  6.67428e-11i

  1E6i

  

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

  

  [

  	["number", "42"],

  	["number", "0600"],

  	["number", "0xBadFace"],

  	["number", "170141183460469231731687303715884105727"],

  	["number", "72.40"],

  	["number", "072.40"],

  	["number", "2.71828"],

  	["number", "1.e+0"],

  	["number", "6.67428e-11"],

  	["number", "1E6"],

  	["number", "0i"],

  	["number", "011i"],

  	["number", "0.i"],

  	["number", "2.71828i"],

  	["number", "1.e+0i"],

  	["number", "6.67428e-11i"],

  	["number", "1E6i"]

  ]

  

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

  

  Checks for integers, floats and imaginary numbers.