summary refs log tree commit diff
path: root/src/test/run-pass/seq-compare.rs
blob: e310184c6c80a38d1e16dce6ba1cfeee841676f6 (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]);
}