Remove test/run-pass/simple-qsort

This is part of stdtest now
This commit is contained in:
Brian Anderson 2011-08-01 11:37:03 -07:00
parent 67b8f8b13a
commit 166c73546a

View file

@ -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(); }