summary refs log tree commit diff
path: root/src/test/run-pass/seq-compare.rs
blob: 00ddcbd9a6541db6042b309338fe6d7c6541e7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


fn main() {
    assert ("hello" < "hellr");
    assert ("hello " > "hello");
    assert ("hello" != "there");
    assert (~[1, 2, 3, 4] > ~[1, 2, 3]);
    assert (~[1, 2, 3] < ~[1, 2, 3, 4]);
    assert (~[1, 2, 4, 4] > ~[1, 2, 3, 4]);
    assert (~[1, 2, 3, 4] < ~[1, 2, 4, 4]);
    assert (~[1, 2, 3] <= ~[1, 2, 3]);
    assert (~[1, 2, 3] <= ~[1, 2, 3, 3]);
    assert (~[1, 2, 3, 4] > ~[1, 2, 3]);
    assert (~[1, 2, 3] == ~[1, 2, 3]);
    assert (~[1, 2, 3] != ~[1, 1, 3]);
}