Blame view

bower_components/prism/tests/languages/elixir/number_feature.test 491 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
  0b1111_0000

  0o754_123

  0xBadFace

  42

  42_000

  3.14159

  2e6

  3.241_753E-7

  0.7e+15

  

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

  

  [

  	["number", "0b1111_0000"],

  	["number", "0o754_123"],

  	["number", "0xBadFace"],

  	["number", "42"],

  	["number", "42_000"],

  	["number", "3.14159"],

  	["number", "2e6"],

  	["number", "3.241_753E-7"],

  	["number", "0.7e+15"]

  ]

  

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

  

  Checks for binary, octal, hexadecimal and decimal numbers.