raw.zy 482 B

1234567891011121314151617181920
  1. (assert (== (raw2str (raw `sup`)) "sup"))
  2. (def s `hi
  3. there 34
  4. symbols`)
  5. (assert (== s "hi\nthere 34\n symbols"))
  6. // long, multi-line raw strings, even in at the repl infix.
  7. // NB it turns out this doesn't actually test the
  8. // new feature. But if you entered this by hand
  9. // --without the {} curly braces, in the old repl--
  10. // then you would see the difference. Hard to set
  11. // without a way to shift into that same mode.
  12. // Avoid this:
  13. //
  14. { s2 = `
  15. `}
  16. (assert (== s2 "\n\n\n"))