Fix borked tests

This commit is contained in:
Tim Chevalier 2012-09-25 22:12:54 -07:00
parent e19e628b19
commit 95bc32dc4f
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ fn maybe_run_test(argv: &[~str], name: ~str, test: fn()) {
if os::getenv(~"RUST_BENCH").is_some() { run_test = true }
else if argv.len() > 0 {
run_test = argv.contains(~"all") || argv.contains(name)
run_test = argv.contains(&~"all") || argv.contains(&name)
}
if !run_test { return }

View File

@ -374,7 +374,7 @@ fn validate(edges: ~[(node_id, node_id)],
true
}
else {
edges.contains((u, v)) || edges.contains((v, u))
edges.contains(&(u, v)) || edges.contains(&(v, u))
}
};