aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Chevalier <[email protected]>2011-05-02 13:50:34 -0700
committerGraydon Hoare <[email protected]>2011-05-05 11:26:07 -0700
commitbc5650a9d06b85b83d96072a84655cce0991fc41 (patch)
tree5dead51e7be528e91dff61e5f362d93ba47675d6 /src
parentCheck that the operand in a check is a call (diff)
downloadrust-bc5650a9d06b85b83d96072a84655cce0991fc41.tar.xz
rust-bc5650a9d06b85b83d96072a84655cce0991fc41.zip
Change checks to asserts in test/bench files
Diffstat (limited to 'src')
-rw-r--r--src/test/bench/shootout/ackermann.rs8
-rw-r--r--src/test/bench/shootout/fibo.rs4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/bench/shootout/ackermann.rs b/src/test/bench/shootout/ackermann.rs
index 27b4c3c0..7eaf84ce 100644
--- a/src/test/bench/shootout/ackermann.rs
+++ b/src/test/bench/shootout/ackermann.rs
@@ -13,13 +13,13 @@ fn ack(int m, int n) -> int {
}
fn main() {
- check (ack(0,0) == 1);
- check (ack(3,2) == 29);
- check (ack(3,4) == 125);
+ assert (ack(0,0) == 1);
+ assert (ack(3,2) == 29);
+ assert (ack(3,4) == 125);
// This takes a while; but a comparison may amuse: on win32 at least, the
// posted C version of the 'benchmark' running ack(4,1) overruns its stack
// segment and crashes. We just grow our stack (to 4mb) as we go.
- // check (ack(4,1) == 65533);
+ // assert (ack(4,1) == 65533);
} \ No newline at end of file
diff --git a/src/test/bench/shootout/fibo.rs b/src/test/bench/shootout/fibo.rs
index 9045f381..8fc95f89 100644
--- a/src/test/bench/shootout/fibo.rs
+++ b/src/test/bench/shootout/fibo.rs
@@ -15,8 +15,8 @@ fn fib(int n) -> int {
}
fn main() {
- check (fib(8) == 21);
- check (fib(15) == 610);
+ assert (fib(8) == 21);
+ assert (fib(15) == 610);
log fib(8);
log fib(15);
}