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

17 lines
287 B
Rust
Raw Normal View History

// -*- rust -*-
use std;
import std::str;
fn main() {
2011-07-27 07:19:39 -05:00
let a: str = "this \
is a test";
2011-07-27 07:19:39 -05:00
let b: str =
"this \
is \
another \
test";
assert (str::eq(a, "this is a test"));
assert (str::eq(b, "this is another test"));
}