2010-09-21 13:47:10 -05:00
|
|
|
tag foo {
|
|
|
|
large;
|
|
|
|
small;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
auto a = tup(1,2,3);
|
|
|
|
auto b = tup(1,2,3);
|
2011-05-02 19:47:24 -05:00
|
|
|
assert (a == b);
|
|
|
|
assert (a != tup(1,2,4));
|
|
|
|
assert (a < tup(1,2,4));
|
|
|
|
assert (a <= tup(1,2,4));
|
|
|
|
assert (tup(1,2,4) > a);
|
|
|
|
assert (tup(1,2,4) >= a);
|
2010-09-21 13:47:10 -05:00
|
|
|
auto x = large;
|
|
|
|
auto y = small;
|
2011-05-02 19:47:24 -05:00
|
|
|
assert (x != y);
|
|
|
|
assert (x == large);
|
|
|
|
assert (x != small);
|
2010-09-21 13:47:10 -05:00
|
|
|
}
|