mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
add a c/raw string interpolation test
This commit is contained in:
@ -517,3 +517,12 @@ fn test_raw_inter() {
|
||||
assert s.contains('$')
|
||||
}
|
||||
|
||||
fn test_c_r() {
|
||||
// This used to break because of r'' and c''
|
||||
c := 42
|
||||
println('$c')
|
||||
r := 50
|
||||
println('$r')
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user