test: Remove swappable-test

This commit is contained in:
Brian Anderson 2012-06-05 14:59:43 -07:00
parent ec5cbb4f5e
commit aabf84cdd8

View File

@ -1,13 +0,0 @@
import swappable::{swappable, methods};
fn main() {
let d = swappable(3);
assert d.get() == 3;
d.set(4);
assert d.get() == 4;
d.swap { |i| i + 1 };
assert d.get() == 5;
assert d.with { |i| i + 1 } == 6;
assert d.get() == 5;
assert swappable::unwrap(d) == 5;
}