Port ID-based channels.
This commit is contained in:
parent
04af99ecb0
commit
39b16077bb
9 changed files with 96 additions and 7 deletions
|
|
@ -1,3 +1,10 @@
|
|||
// FIXME: this test is xfailed until sending strings is legal again.
|
||||
|
||||
//xfail-stage0
|
||||
//xfail-stage1
|
||||
//xfail-stage2
|
||||
//xfail-stage3
|
||||
|
||||
use std;
|
||||
import std::task;
|
||||
import std::comm;
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ fn test_vec() {
|
|||
}
|
||||
|
||||
fn test_str() {
|
||||
// FIXME: re-enable this once strings are unique and sendable
|
||||
/*
|
||||
let po = comm::mk_port();
|
||||
let ch = po.mk_chan();
|
||||
let s0: str = "test";
|
||||
|
|
@ -42,6 +44,7 @@ fn test_str() {
|
|||
assert (s1.(1) as u8 == 'e' as u8);
|
||||
assert (s1.(2) as u8 == 's' as u8);
|
||||
assert (s1.(3) as u8 == 't' as u8);
|
||||
*/
|
||||
}
|
||||
|
||||
fn test_tag() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue