Port ID-based channels.

This commit is contained in:
Eric Holk 2011-08-09 16:07:49 -07:00
parent 04af99ecb0
commit 39b16077bb
9 changed files with 96 additions and 7 deletions

View file

@ -17,3 +17,14 @@ fn send_recv() {
log_err v;
assert(42 == v);
}
#[test]
fn send_recv2() {
let p = comm::mk_port[int]();
let c = p.mk_chan2();
comm::send(c, 42);
let v = p.recv();
log_err v;
assert(42 == v);
}