Cleaning up task and comm exports, updating all the test cases.
This commit is contained in:
parent
b31815f8a0
commit
2f7c583bc1
60 changed files with 542 additions and 522 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue