diff --git a/src/test/bench/core-map.rs b/src/test/bench/core-map.rs index 67281594a39..171a5319291 100644 --- a/src/test/bench/core-map.rs +++ b/src/test/bench/core-map.rs @@ -49,19 +49,19 @@ fn descending>(map: &mut M, n_keys: uint) { io::println(" Descending integers:"); do timed("insert") { - for uint::range(0, n_keys) |i| { + for uint::range_rev(n_keys, 0) |i| { map.insert(i, i + 1); } } do timed("search") { - for uint::range(0, n_keys) |i| { + for uint::range_rev(n_keys, 0) |i| { fail_unless!(map.find(&i).unwrap() == &(i + 1)); } } do timed("remove") { - for uint::range(0, n_keys) |i| { + for uint::range_rev(n_keys, 0) |i| { fail_unless!(map.remove(&i)); } }