Skip to content

Commit 21b31a3

Browse files
lkupergraydon
authored andcommitted
Updated test to use 'check' rather than just logging results.
1 parent 9a7576f commit 21b31a3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test/run-pass/obj-self-3.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@ fn main() {
1818
auto a = foo();
1919
let int i = 0;
2020

21-
// output should be: 0, 1, 2, 4
22-
log i;
2321
i = a.m1(i);
24-
log i;
22+
check (i == 1);
2523
i = a.m2(i);
26-
log i;
24+
check (i == 2);
2725
i = a.m3(i);
28-
log i;
26+
check (i == 4);
2927
}
3028

3129

0 commit comments

Comments
 (0)