about summary refs log tree commit diff
path: root/src/test/run-fail/assert-eq-macro-fail.rs
AgeCommit message (Collapse)AuthorLines
2014-11-11test: Rename files, fail -> panic.Michael Sproul-15/+0
2014-06-24librustc: Remove the fallback to `int` from typechecking.Niko Matsakis-1/+1
This breaks a fair amount of code. The typical patterns are: * `for _ in range(0, 10)`: change to `for _ in range(0u, 10)`; * `println!("{}", 3)`: change to `println!("{}", 3i)`; * `[1, 2, 3].len()`: change to `[1i, 2, 3].len()`. RFC #30. Closes #6023. [breaking-change]
2014-04-09Remove the unused Point struct in the assert-eq-macro-fail.rs test.Kasey Carrothers-3/+0
2014-02-07Added tests to make tidyDerek Guenther-0/+10
2013-07-10fix testCorey Richardson-1/+1
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-1/+1
2013-04-25Made fail! and assert! accept both &'static str and ~str, as well as a fmt! ↵Marvin Löbel-1/+1
like format list. Unwinding through macros now happens as a call to the trait function `FailWithCause::fail_with()`, which consumes self, allowing to use a more generic failure object in the future.
2013-03-22test: replace uses of old deriving attribute with new oneAndrew Paseltiner-1/+1
2013-03-20add assert_eq! macroJohn Clements-0/+8
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.