jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/parser/number_feature.test
2016-02-03 18:00:01 -05:00

51 lines
874 B
Plaintext

(42)
(3.14159)
(3e5)
(0.8E-12)
(3.9e+2)
(0xbadface)
(0XBADFACE)
----------------------------------------------------
[
["expression", [
["punctuation", "("],
["number", "42"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "3.14159"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "3e5"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "0.8E-12"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "3.9e+2"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "0xbadface"],
["punctuation", ")"]
]],
["expression", [
["punctuation", "("],
["number", "0XBADFACE"],
["punctuation", ")"]
]]
]
----------------------------------------------------
Checks for numbers inside expressions.