Blame view

bower_components/prism/tests/languages/perl/number_feature.test 520 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
  0xFF

  0xBad_Face

  

  0b1100

  0b1111_0000

  

  42

  42_000

  3.14_15_9

  1.2e4

  1_423.6E-2

  0.8E+12

  

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

  

  [

  	["number", "0xFF"],

  	["number", "0xBad_Face"],

  

  	["number", "0b1100"],

  	["number", "0b1111_0000"],

  

  	["number", "42"],

  	["number", "42_000"],

  	["number", "3.14_15_9"],

  	["number", "1.2e4"],

  	["number", "1_423.6E-2"],

  	["number", "0.8E+12"]

  ]

  

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

  

  Checks for hexadecimal, binary and decimal numbers.