diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/bench/core-set.rs | 2 | ||||
| -rw-r--r-- | src/test/bench/std-smallintmap.rs | 8 | ||||
| -rw-r--r-- | src/test/run-fail/hashmap-capacity-overflow.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/auto-encode.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/while-let.rs | 6 |
5 files changed, 10 insertions, 10 deletions
diff --git a/src/test/bench/core-set.rs b/src/test/bench/core-set.rs index 4833467922b..8151f2718e3 100644 --- a/src/test/bench/core-set.rs +++ b/src/test/bench/core-set.rs @@ -14,7 +14,7 @@ extern crate collections; extern crate rand; extern crate time; -use std::collections::bitv::BitvSet; +use std::collections::BitvSet; use std::collections::TreeSet; use std::hash::Hash; use std::collections::HashSet; diff --git a/src/test/bench/std-smallintmap.rs b/src/test/bench/std-smallintmap.rs index 2086980b016..cdcb88d87c6 100644 --- a/src/test/bench/std-smallintmap.rs +++ b/src/test/bench/std-smallintmap.rs @@ -13,17 +13,17 @@ extern crate collections; extern crate time; -use std::collections::SmallIntMap; +use std::collections::VecMap; use std::os; use std::uint; -fn append_sequential(min: uint, max: uint, map: &mut SmallIntMap<uint>) { +fn append_sequential(min: uint, max: uint, map: &mut VecMap<uint>) { for i in range(min, max) { map.insert(i, i + 22u); } } -fn check_sequential(min: uint, max: uint, map: &SmallIntMap<uint>) { +fn check_sequential(min: uint, max: uint, map: &VecMap<uint>) { for i in range(min, max) { assert_eq!(map[i], i + 22u); } @@ -45,7 +45,7 @@ fn main() { let mut appendf = 0.0; for _ in range(0u, rep) { - let mut map = SmallIntMap::new(); + let mut map = VecMap::new(); let start = time::precise_time_s(); append_sequential(0u, max, &mut map); let mid = time::precise_time_s(); diff --git a/src/test/run-fail/hashmap-capacity-overflow.rs b/src/test/run-fail/hashmap-capacity-overflow.rs index f68b511d0aa..c86f8a38f63 100644 --- a/src/test/run-fail/hashmap-capacity-overflow.rs +++ b/src/test/run-fail/hashmap-capacity-overflow.rs @@ -10,7 +10,7 @@ // error-pattern:capacity overflow -use std::collections::hashmap::HashMap; +use std::collections::hash_map::HashMap; use std::uint; use std::mem::size_of; diff --git a/src/test/run-pass/auto-encode.rs b/src/test/run-pass/auto-encode.rs index 10c3df9388a..44006a0039a 100644 --- a/src/test/run-pass/auto-encode.rs +++ b/src/test/run-pass/auto-encode.rs @@ -17,7 +17,7 @@ extern crate time; // These tests used to be separate files, but I wanted to refactor all // the common code. -use std::hashmap::{HashMap, HashSet}; +use std::collections::{HashMap, HashSet}; use rbml::reader as EBReader; use rbml::writer as EBWriter; diff --git a/src/test/run-pass/while-let.rs b/src/test/run-pass/while-let.rs index 41f54d47ad4..449b3099dfa 100644 --- a/src/test/run-pass/while-let.rs +++ b/src/test/run-pass/while-let.rs @@ -10,10 +10,10 @@ #![feature(while_let)] -use std::collections::PriorityQueue; +use std::collections::BinaryHeap; -fn make_pq() -> PriorityQueue<int> { - PriorityQueue::from_vec(vec![1i,2,3]) +fn make_pq() -> BinaryHeap<int> { + BinaryHeap::from_vec(vec![1i,2,3]) } pub fn main() { |
