jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/rust/number_feature.test

47 lines
770 B
Plaintext
Raw Normal View History

2016-02-03 16:00:01 -07:00
0xBad_Face
0o741_123
0b0000_1111
42_000
3.14_15_9
3e4
3.5E-8
4.6e+41
0xBad_Faceu8
0o741_123i8
0b0000_1111u16
42_000i16
3.14_15_9u32
3e4i32
3.5E-8u64
4.6e+41i64
4.2f32
4.2f64
----------------------------------------------------
[
["number", "0xBad_Face"],
["number", "0o741_123"],
["number", "0b0000_1111"],
["number", "42_000"],
["number", "3.14_15_9"],
["number", "3e4"],
["number", "3.5E-8"],
["number", "4.6e+41"],
["number", "0xBad_Faceu8"],
["number", "0o741_123i8"],
["number", "0b0000_1111u16"],
["number", "42_000i16"],
["number", "3.14_15_9u32"],
["number", "3e4i32"],
["number", "3.5E-8u64"],
["number", "4.6e+41i64"],
["number", "4.2f32"],
["number", "4.2f64"]
]
----------------------------------------------------
Checks for numbers.