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