/src/test/run-pass/seq-compare.rs
Rust | 16 lines | 14 code | 2 blank | 0 comment | 3 complexity | ccb494b86523526b1247a0f35ff28a0c MD5 | raw file
1 2 3fn main() { 4 assert (~"hello" < ~"hellr"); 5 assert (~"hello " > ~"hello"); 6 assert (~"hello" != ~"there"); 7 assert (~[1, 2, 3, 4] > ~[1, 2, 3]); 8 assert (~[1, 2, 3] < ~[1, 2, 3, 4]); 9 assert (~[1, 2, 4, 4] > ~[1, 2, 3, 4]); 10 assert (~[1, 2, 3, 4] < ~[1, 2, 4, 4]); 11 assert (~[1, 2, 3] <= ~[1, 2, 3]); 12 assert (~[1, 2, 3] <= ~[1, 2, 3, 3]); 13 assert (~[1, 2, 3, 4] > ~[1, 2, 3]); 14 assert (~[1, 2, 3] == ~[1, 2, 3]); 15 assert (~[1, 2, 3] != ~[1, 1, 3]); 16}