rust/src/test/run-pass/str-multiline.rs

18 lines
283 B
Rust
Raw Normal View History

// -*- rust -*-
use std;
import str;
fn main() {
2011-09-02 17:34:58 -05:00
let a: str = "this \
is a test";
2011-09-02 17:34:58 -05:00
let b: str =
"this \
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"));
}