Blame view

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

  42_000

  3.1415_9

  4.2e14

  0xBaf_Face

  0xFF47.AB_61p2

  0b0000_1111

  0o147_654

  

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

  

  [

  	["number", "42"],

  	["number", "42_000"],

  	["number", "3.1415_9"],

  	["number", "4.2e14"],

  	["number", "0xBaf_Face"],

  	["number", "0xFF47.AB_61p2"],

  	["number", "0b0000_1111"],

  	["number", "0o147_654"]

  ]

  

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

  

  Checks for decimal, hexadecimal, octal and binary numbers.