test: Fix tests.

This commit is contained in:
Patrick Walton 2013-07-11 12:05:17 -07:00
parent e20549ff19
commit 2dbb3c3887
36 changed files with 217 additions and 243 deletions

View file

@ -63,8 +63,8 @@ fn git_repo_pkg() -> PkgId {
fn writeFile(file_path: &Path, contents: &str) {
let out: @io::Writer =
result::get(&io::file_writer(file_path,
[io::Create, io::Truncate]));
result::unwrap(io::file_writer(file_path,
[io::Create, io::Truncate]));
out.write_line(contents);
}

View file

@ -44,7 +44,7 @@ pub fn main() {
}
let file = io::file_writer(&out_path.push("generated.rs"),
[io::Create]).get();
[io::Create]).unwrap();
file.write_str("pub fn wheeeee() { for [1, 2, 3].each() |_| { assert!(true); } }");