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