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

18 lines
297 B
Rust
Raw Normal View History

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