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;
|
|
|
|
import std::str;
|
|
|
|
|
|
|
|
fn main() {
|
2011-07-27 07:19:39 -05:00
|
|
|
let a: str = "this \
|
2011-06-07 03:53:47 -05:00
|
|
|
is a test";
|
2011-07-27 07:19:39 -05:00
|
|
|
let b: str =
|
2011-06-15 13:19:50 -05:00
|
|
|
"this \
|
2011-06-07 03:53:47 -05:00
|
|
|
is \
|
|
|
|
another \
|
|
|
|
test";
|
2011-06-15 13:19:50 -05:00
|
|
|
assert (str::eq(a, "this is a test"));
|
|
|
|
assert (str::eq(b, "this is another test"));
|
2011-06-07 03:53:47 -05:00
|
|
|
}
|