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

18 lines
294 B
Rust
Raw Normal View History

// -*- rust -*-
use std;
import std::str;
fn main() {
let a: istr = ~"this \
is a test";
let b: istr =
~"this \
is \
another \
test";
assert (str::eq(a, ~"this is a test"));
assert (str::eq(b, ~"this is another test"));
}