libcore: send_map test simplification.
This commit is contained in:
parent
e874d37569
commit
8cf09305a7
1 changed files with 2 additions and 6 deletions
|
@ -374,13 +374,9 @@ mod test {
|
|||
|
||||
use linear::LinearMap;
|
||||
|
||||
fn int_linear_map<V>() -> LinearMap<uint,V> {
|
||||
return LinearMap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn inserts() {
|
||||
let mut m = int_linear_map();
|
||||
let mut m = ~LinearMap();
|
||||
assert m.insert(1, 2);
|
||||
assert m.insert(2, 4);
|
||||
assert m.get(&1) == 2;
|
||||
|
@ -389,7 +385,7 @@ mod test {
|
|||
|
||||
#[test]
|
||||
fn overwrite() {
|
||||
let mut m = int_linear_map();
|
||||
let mut m = ~LinearMap();
|
||||
assert m.insert(1, 2);
|
||||
assert m.get(&1) == 2;
|
||||
assert !m.insert(1, 3);
|
||||
|
|
Loading…
Add table
Reference in a new issue