Cleaning up task and comm exports, updating all the test cases.

This commit is contained in:
Eric Holk 2011-08-25 11:20:43 -07:00
parent b31815f8a0
commit 2f7c583bc1
60 changed files with 542 additions and 522 deletions

View file

@ -3,19 +3,8 @@ import std::comm;
#[test]
fn create_port_and_chan() {
let p = comm::mk_port::<int>();
p.mk_chan();
}
#[test]
fn send_recv() {
let p = comm::mk_port::<int>();
let c = p.mk_chan();
comm::send(c, 42);
let v = p.recv();
log_err v;
assert (42 == v);
let p = comm::port::<int>();
comm::chan(p);
}
#[test]