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-06-15 13:19:50 -05:00
|
|
|
let str a = "this \
|
2011-06-07 03:53:47 -05:00
|
|
|
is a test";
|
2011-06-15 13:19:50 -05:00
|
|
|
let str b =
|
|
|
|
"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
|
|
|
}
|