/src/test/run-pass/str-multiline.rs
http://github.com/jruderman/rust · Rust · 17 lines · 13 code · 3 blank · 1 comment · 2 complexity · 5f2dbfd26072fa7ab692e84b856bade7 MD5 · raw file
- // -*- rust -*-
- use std;
- import str;
- fn main() {
- let a: ~str = ~"this \
- is a test";
- let b: ~str =
- ~"this \
- is \
- another \
- test";
- assert (a == ~"this is a test");
- assert (b == ~"this is another test");
- }