Blame view

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

  3.14159

  4e10

  3.2E+6

  2.1e-10

  0b1101

  0o571

  0xbabe

  0xBABE

  NaN

  Infinity

  

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

  

  [

  	["number", "42"],

  	["number", "3.14159"],

  	["number", "4e10"],

  	["number", "3.2E+6"],

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

  	["number", "0b1101"],

  	["number", "0o571"],

  	["number", "0xbabe"],

  	["number", "0xBABE"],

  	["number", "NaN"],

  	["number", "Infinity"]

  ]

  

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

  

  Checks for decimal numbers, binary numbers, octal numbers, hexadecimal numbers.

  Also checks for keywords representing numbers.