Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
tests
/
raw_string_ending_withs_backslash_test.v
11
lines
·
10
sloc
·
250 bytes
·
8b820fca917d0af23778dacc9ebc5fa66edd6650
Raw
1
fn
test_raw_string_ending_withs_backslack() {
2
str := r
'line1 \
3
line2 \
4
line3\'
5
6
lines := str.split_into_lines()
7
assert lines.len == 3
8
assert lines[0] ==
'line1 \\'
9
assert lines[1] ==
'\tline2 \\'
10
assert lines[2] ==
' line3\\'
11
}
12