PageRenderTime 22ms CodeModel.GetById 18ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1
 2
 3// -*- rust -*-
 4use std;
 5import str;
 6
 7fn main() {
 8    let a: ~str = ~"this \
 9is a test";
10    let b: ~str =
11        ~"this \
12               is \
13               another \
14               test";
15    assert (a == ~"this is a test");
16    assert (b == ~"this is another test");
17}