Skip to content

Commit 6a53000

Browse files
committed
fixup
1 parent 36dd254 commit 6a53000

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/libcollections/bit.rs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,35 +2231,6 @@ mod tests {
22312231
assert_eq!(bitv.iter().collect::<Vec<bool>>(), long)
22322232
}
22332233

2234-
#[test]
2235-
fn test_bitv_set_iterator() {
2236-
let bools = [true, false, true, true];
2237-
let bitv: BitvSet = bools.iter().map(|n| *n).collect();
2238-
2239-
let idxs: Vec<uint> = bitv.iter().collect();
2240-
assert_eq!(idxs, vec!(0, 2, 3));
2241-
2242-
let long: BitvSet = range(0u, 10000).map(|n| n % 2 == 0).collect();
2243-
let real = range_step(0, 10000, 2).collect::<Vec<uint>>();
2244-
2245-
let idxs: Vec<uint> = long.iter().collect();
2246-
assert_eq!(idxs, real);
2247-
}
2248-
2249-
#[test]
2250-
fn test_bitv_set_frombitv_init() {
2251-
let bools = [true, false];
2252-
let lengths = [10, 64, 100];
2253-
for &b in bools.iter() {
2254-
for &l in lengths.iter() {
2255-
let bitset = BitvSet::from_bitv(Bitv::with_capacity(l, b));
2256-
assert_eq!(bitset.contains(&1u), b);
2257-
assert_eq!(bitset.contains(&(l-1u)), b);
2258-
assert!(!bitset.contains(&l))
2259-
}
2260-
}
2261-
}
2262-
22632234
#[test]
22642235
fn test_small_difference() {
22652236
let mut b1 = Bitv::from_elem(3, false);

0 commit comments

Comments
 (0)