2011-06-07 03:53:47 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
// -*- rust -*-
|
2011-06-07 03:53:47 -05:00
|
|
|
use std;
|
2011-09-01 19:27:58 -05:00
|
|
|
import std::str;
|
2011-06-07 03:53:47 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-08-31 19:05:50 -05:00
|
|
|
let a: istr = ~"this \
|
2011-06-07 03:53:47 -05:00
|
|
|
is a test";
|
2011-08-31 19:05:50 -05:00
|
|
|
let b: istr =
|
|
|
|
~"this \
|
2011-06-07 03:53:47 -05:00
|
|
|
is \
|
|
|
|
another \
|
|
|
|
test";
|
2011-09-01 19:27:58 -05:00
|
|
|
assert (str::eq(a, ~"this is a test"));
|
|
|
|
assert (str::eq(b, ~"this is another test"));
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|