Blame view

bower_components/prism/tests/languages/groovy/number_feature.test 824 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
  0b0110

  0b0110_1111_0000

  0b01G 0b01L 0b01I

  0b01D 0b01F

  

  0xBABE

  0xBad_Face

  0x1.8p1

  0xa.fp-2

  

  42_000

  3.14_15_9

  1.2e3

  3E+1

  4E-2

  42g 42l 42i

  42d 42f

  

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

  

  [

  	["number", "0b0110"],

  	["number", "0b0110_1111_0000"],

  	["number", "0b01G"], ["number", "0b01L"], ["number", "0b01I"],

  	["number", "0b01D"], ["number", "0b01F"],

  

  	["number", "0xBABE"],

  	["number", "0xBad_Face"],

  	["number", "0x1.8p1"],

  	["number", "0xa.fp-2"],

  

  	["number", "42_000"],

  	["number", "3.14_15_9"],

  	["number", "1.2e3"],

  	["number", "3E+1"],

  	["number", "4E-2"],

  	["number", "42g"], ["number", "42l"], ["number", "42i"],

  	["number", "42d"], ["number", "42f"]

  ]

  

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

  

  Checks for binary, hexadecimal and decimal numbers.