summary refs log tree commit diff
path: root/src/test/run-pass/str-multiline.rs
blob: a11d7ef48744a9833ab51aecf368ee890d2d3649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


// -*- rust -*-
extern mod std;

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");
}