]> git.lizzy.rs Git - rust.git/commit
auto merge of #5407 : jbclements/rust/add-assert-eq-macro, r=jbclements
authorbors <bors@rust-lang.org>
Thu, 21 Mar 2013 22:24:54 +0000 (15:24 -0700)
committerbors <bors@rust-lang.org>
Thu, 21 Mar 2013 22:24:54 +0000 (15:24 -0700)
commitec8345b18abef2fba6153ae999446e3f05b8275a
tree39624c9607433eca52a2fabb1cebcc567499a858
parented25a674ac6bc53c9ee9f8c1cce21541f6811d4b
parent3cd65c233d750cd37982911602db79d29e6f5874
auto merge of #5407 : jbclements/rust/add-assert-eq-macro, r=jbclements

Adds an assert_eq! macro that asserts that its two arguments are equal. Error messages can therefore be somewhat more informative than a simple assert, because the error message includes "expected" and "given" values.
src/libstd/json.rs
src/libsyntax/codemap.rs
src/libsyntax/parse/lexer.rs
src/libsyntax/print/pprust.rs