rust/tests/run-pass/char.rs

8 lines
163 B
Rust
Raw Normal View History

2016-06-20 05:29:45 -05:00
fn main() {
let c = 'x';
assert_eq!(c, 'x');
assert!('a' < 'z');
assert!('1' < '9');
2018-08-26 13:42:26 -05:00
assert_eq!(std::char::from_u32('x' as u32), Some('x'));
2016-06-20 05:29:45 -05:00
}