1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

scanner: fix string interpolation in raw strings

This commit is contained in:
Alexander Medvednikov
2019-11-03 23:57:26 +03:00
parent 3449a8bc4d
commit 4e64a58ac1
3 changed files with 13 additions and 6 deletions

View File

@@ -498,3 +498,10 @@ fn test_atoi() {
}
}
fn test_raw_inter() {
world := 'world'
s := r'hello\n$world'
assert s == r'hello\n$world'
assert s.contains('$')
}