2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
tag foo { large; small; }
|
2010-09-21 13:47:10 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-07-27 07:19:39 -05:00
|
|
|
let a = {x: 1, y: 2, z: 3};
|
|
|
|
let b = {x: 1, y: 2, z: 3};
|
2011-06-15 13:19:50 -05:00
|
|
|
assert (a == b);
|
2011-07-27 07:19:39 -05:00
|
|
|
assert (a != {x: 1, y: 2, z: 4});
|
|
|
|
assert (a < {x: 1, y: 2, z: 4});
|
|
|
|
assert (a <= {x: 1, y: 2, z: 4});
|
|
|
|
assert ({x: 1, y: 2, z: 4} > a);
|
|
|
|
assert ({x: 1, y: 2, z: 4} >= a);
|
|
|
|
let x = large;
|
|
|
|
let y = small;
|
2011-06-15 13:19:50 -05:00
|
|
|
assert (x != y);
|
|
|
|
assert (x == large);
|
|
|
|
assert (x != small);
|
2010-09-21 13:47:10 -05:00
|
|
|
}
|