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-12-13 18:25:51 -06:00
|
|
|
import str;
|
2011-06-07 03:53:47 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-09-02 17:34:58 -05:00
|
|
|
let a: str = "this \
|
2011-06-07 03:53:47 -05:00
|
|
|
is a test";
|
2011-09-02 17:34:58 -05:00
|
|
|
let b: str =
|
|
|
|
"this \
|
2011-06-07 03:53:47 -05:00
|
|
|
is \
|
|
|
|
another \
|
|
|
|
test";
|
2011-09-02 17:34: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
|
|
|
}
|