Remove test/run-pass/simple-qsort
This is part of stdtest now
This commit is contained in:
parent
67b8f8b13a
commit
166c73546a
1 changed files with 0 additions and 23 deletions
|
@ -1,23 +0,0 @@
|
|||
// xfail-stage0
|
||||
|
||||
use std;
|
||||
import std::ivec;
|
||||
import std::int;
|
||||
import std::sort;
|
||||
|
||||
fn test_qsort() {
|
||||
let names = ~[mutable 2, 1, 3];
|
||||
|
||||
let expected = ~[1, 2, 3];
|
||||
|
||||
fn lteq(a: &int, b: &int) -> bool { int::le(a, b) }
|
||||
sort::ivector::quick_sort(lteq, names);
|
||||
|
||||
let pairs = ivec::zip(expected, ivec::from_mut(names));
|
||||
for p: {_0: int, _1: int} in pairs {
|
||||
log_err #fmt("%d %d", p._0, p._1);
|
||||
assert (p._0 == p._1);
|
||||
}
|
||||
}
|
||||
|
||||
fn main() { test_qsort(); }
|
Loading…
Reference in a new issue