Fix borked tests
This commit is contained in:
parent
e19e628b19
commit
95bc32dc4f
@ -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 }
|
||||
|
@ -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))
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user