Skip to content

Commit a73a0dd

Browse files
committed
test: Update binops.rs with the new equality semantics
1 parent 1f8e0fa commit a73a0dd

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/test/run-pass/binops.rs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fn test_fn() {
101101
assert (f1 == f2);
102102
assert (f1 == f);
103103

104-
assert (f1 == g1);
104+
assert (f1 != g1);
105105
assert (h1 == h2);
106106
assert (!(f1 != f2));
107107
assert (!(h1 < h2));
@@ -125,12 +125,8 @@ fn test_obj() {
125125
let o1 = obj () { };
126126
let o2 = obj () { };
127127

128-
assert (o1 == o2);
129-
assert (!(o1 != o2));
130-
assert (!(o1 < o2));
131-
assert (o1 <= o2);
132-
assert (!(o1 > o2));
133-
assert (o1 >= o2);
128+
assert (o1 != o2);
129+
assert (!(o1 == o2));
134130

135131
obj constr1(i: int) { }
136132
obj constr2(i: int) { }
@@ -140,9 +136,9 @@ fn test_obj() {
140136
let o7 = constr1(11);
141137
let o8 = constr2(11);
142138

143-
assert (o5 == o6);
144-
assert (o6 == o7);
145-
assert (o7 == o8);
139+
assert (o5 != o6);
140+
assert (o6 != o7);
141+
assert (o7 != o8);
146142
}
147143

148144
fn main() {
@@ -157,4 +153,4 @@ fn main() {
157153
test_fn();
158154
test_native_fn();
159155
test_obj();
160-
}
156+
}

0 commit comments

Comments
 (0)