Blame view

bower_components/prism/tests/languages/c/number_feature.test 544 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
  42

  3.14159

  4e10

  2.1e-10

  0.4e+2

  0xbabe

  0xBABE

  42f

  42F

  42u

  42U

  42l

  42L

  

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

  

  [

  	["number", "42"],

  	["number", "3.14159"],

  	["number", "4e10"],

  	["number", "2.1e-10"],

  	["number", "0.4e+2"],

  	["number", "0xbabe"],

  	["number", "0xBABE"],

  	["number", "42f"],

  	["number", "42F"],

  	["number", "42u"],

  	["number", "42U"],

  	["number", "42l"],

  	["number", "42L"]

  ]

  

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

  

  Checks for decimal numbers and hexadecimal numbers.