Blame view

bower_components/prism/tests/languages/python/number_feature.test 459 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
  0b0001

  0o754

  0xBadFace

  42

  3.14159

  2.1E10

  0.3e-7

  4.8e+1

  42j

  

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

  

  [

  	["number", "0b0001"],

  	["number", "0o754"],

  	["number", "0xBadFace"],

  	["number", "42"],

  	["number", "3.14159"],

  	["number", "2.1E10"],

  	["number", "0.3e-7"],

  	["number", "4.8e+1"],

  	["number", "42j"]

  ]

  

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

  

  Checks for hexadecimal, octal, binary and decimal numbers.