This commit is contained in:
Tim Chevalier 2013-04-15 11:52:10 -07:00
parent 884c7c9326
commit 7881bde027
2 changed files with 3 additions and 3 deletions

View File

@ -75,9 +75,9 @@ mod test {
let substitute_path = Path("xyzzy");
assert!(default_dest_dir(&the_path) == the_path.push(~"build"));
let nonexistent_path = mk_nonexistent(&the_path, "quux");
let bogus = do ::conditions::bad_path::cond.trap(|_| {
let bogus = do ::conditions::bad_path::cond.trap(|_| {
substitute_path
}).in { default_dest_dir(&nonexistent_path) };
assert!(bogus == substitute_path);
}
}
}

View File

@ -579,7 +579,7 @@ mod test {
assert!(is_cmd(~"uninstall"));
assert!(is_cmd(~"unprefer"));
}
#[test]
fn test_parse_name() {
assert!(parse_name(~"org.mozilla.servo").get() == ~"servo");