提交 21b31a35 编写于 作者: L Lindsey Kuper 提交者: Graydon Hoare

Updated test to use 'check' rather than just logging results.

上级 9a7576fe
......@@ -18,14 +18,12 @@ fn main() {
auto a = foo();
let int i = 0;
// output should be: 0, 1, 2, 4
log i;
i = a.m1(i);
log i;
check (i == 1);
i = a.m2(i);
log i;
check (i == 2);
i = a.m3(i);
log i;
check (i == 4);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册