change some uses of fail_unless to assert_eq
This commit is contained in:
parent
ab8e46b066
commit
3cd65c233d
16 changed files with 251 additions and 296 deletions
|
@ -313,7 +313,6 @@ mod test {
|
|||
use std;
|
||||
use core::io;
|
||||
use core::option::None;
|
||||
use util::testing::*;
|
||||
|
||||
#[test] fn to_json_str<E : Encodable<std::json::Encoder>>(val: @E) -> ~str {
|
||||
do io::with_str_writer |writer| {
|
||||
|
@ -327,7 +326,7 @@ mod test {
|
|||
@~"fn foo (x : int) { x; }",
|
||||
~[],
|
||||
new_parse_sess(None));
|
||||
check_equal(to_json_str(@tts),
|
||||
assert_eq!(to_json_str(@tts),
|
||||
~"[[\"tt_tok\",[null,[\"IDENT\",[\"fn\",false]]]],\
|
||||
[\"tt_tok\",[null,[\"IDENT\",[\"foo\",false]]]],\
|
||||
[\"tt_delim\",[[[\"tt_tok\",[null,[\"LPAREN\",[]]]],\
|
||||
|
@ -347,7 +346,7 @@ mod test {
|
|||
@~"fn foo (x : int) { x; }",
|
||||
~[],~[],
|
||||
new_parse_sess(None));
|
||||
check_equal(ast1,ast2);
|
||||
assert_eq!(ast1,ast2);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue