jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/javascript/number_feature.test
2016-02-02 21:12:02 -05:00

32 lines
557 B
Plaintext

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.