test: Fix tests.
This commit is contained in:
parent
e20549ff19
commit
2dbb3c3887
36 changed files with 217 additions and 243 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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); } }");
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue