Blame view

bower_components/prism/tests/languages/eiffel/number_feature.test 545 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
  0xbabe

  0xBAD_A55

  0c7654_1234

  0b1111_0000_0101

  42

  42.

  .42

  1_845.123_456

  3.14e+4

  4_2.5_7e-1_0

  

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

  

  [

  	["number", "0xbabe"],

  	["number", "0xBAD_A55"],

  	["number", "0c7654_1234"],

  	["number", "0b1111_0000_0101"],

  	["number", "42"],

  	["number", "42."],

  	["number", ".42"],

  	["number", "1_845.123_456"],

  	["number", "3.14e+4"],

  	["number", "4_2.5_7e-1_0"]

  ]

  

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

  

  Checks for hexadecimal, octal, binary and decimal numbers.