]> git.lizzy.rs Git - rust.git/commit
add assert_eq! macro
authorJohn Clements <clements@racket-lang.org>
Wed, 13 Mar 2013 19:10:32 +0000 (12:10 -0700)
committerJohn Clements <clements@racket-lang.org>
Wed, 20 Mar 2013 20:27:45 +0000 (13:27 -0700)
commitab8e46b0660e076e629e6775ed8da9890c5fbf1f
tree75200518eac0c8128d10fae12cbaa556a2c2f2ff
parent0847d52a8677a39525b7cf7a09571851b6deb8b9
add assert_eq! macro

the assert_eq! macro compares its arguments and fails if they're not
equal. It's more informative than fail_unless!, because it explicitly
writes the given and expected arguments on failure.
src/libsyntax/ext/expand.rs
src/test/run-fail/assert-eq-macro-fail.rs [new file with mode: 0644]
src/test/run-pass/assert-eq-macro-success.rs [new file with mode: 0644]