Fix breakage

This commit is contained in:
Brian Anderson 2013-02-01 15:24:16 -08:00
parent 9dc6938292
commit 04f93be158

View File

@ -13,12 +13,12 @@ use core::cmp;
pub pure fn check_equal_ptr<T : cmp::Eq> (given : &T, expected: &T) { pub pure fn check_equal_ptr<T : cmp::Eq> (given : &T, expected: &T) {
if !((given == expected) && (expected == given )) { if !((given == expected) && (expected == given )) {
fail (fmt!("given %?, expected %?",given,expected)); die!(fmt!("given %?, expected %?",given,expected));
} }
} }
pub pure fn check_equal<T : cmp::Eq> (given : T, expected: T) { pub pure fn check_equal<T : cmp::Eq> (given : T, expected: T) {
if !((given == expected) && (expected == given )) { if !((given == expected) && (expected == given )) {
fail (fmt!("given %?, expected %?",given,expected)); die!(fmt!("given %?, expected %?",given,expected));
} }
} }