raw strings with r'raw'

This commit is contained in:
Alexander Medvednikov 2019-10-06 03:56:08 +03:00
parent ebc50432c7
commit 6a0599b5f4
3 changed files with 28 additions and 13 deletions

View file

@ -464,3 +464,10 @@ fn test_repeat() {
s := 'V! '
assert s.repeat(5) == 'V! V! V! V! V! '
}
fn test_raw() {
raw := r'raw\nstring'
lines := raw.split('\n')
assert lines.len == 1
println('raw string: "$raw"')
}