Add some xfailed estr tests.

This commit is contained in:
Graydon Hoare 2012-04-03 18:11:59 -07:00
parent 685f1867f0
commit 0c94cd5d43
4 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,9 @@
// xfail-test
fn main() {
let x : str/5 = "hello"/5;
let y : str/5 = "there"/_;
let mut z = "thing"/_;
z = x;
assert z[1] == 'h' as u8;
assert z[4] == 'g' as u8;
}

View File

@ -0,0 +1,4 @@
// xfail-test
fn main() {
let x : str/@ = "hello"/@;
}

View File

@ -0,0 +1,8 @@
// xfail-test
fn main() {
let x : str/& = "hello";
let mut y = "there";
y = x;
assert y[1] == 'h' as u8;
assert y[4] == 'e' as u8;
}

View File

@ -0,0 +1,4 @@
// xfail-test
fn main() {
let x : str/~ = "hello"/~;
}