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


// -*- rust -*-
use std;
import str;

fn main() {
    let a: str = "this \
is a test";
    let b: str =
        "this \
               is \
               another \
               test";
    assert (str::eq(a, "this is a test"));
    assert (str::eq(b, "this is another test"));
}