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:
parent
5d5268a53d
commit
0c5854e371
@ -517,3 +517,12 @@ fn test_raw_inter() {
|
|||||||
assert s.contains('$')
|
assert s.contains('$')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn test_c_r() {
|
||||||
|
// This used to break because of r'' and c''
|
||||||
|
c := 42
|
||||||
|
println('$c')
|
||||||
|
r := 50
|
||||||
|
println('$r')
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,6 @@ fn (v mut V) cc() {
|
|||||||
vdir := os.dir(vexe)
|
vdir := os.dir(vexe)
|
||||||
// Just create a C/JavaScript file and exit
|
// Just create a C/JavaScript file and exit
|
||||||
// for example: `v -o v.c compiler`
|
// for example: `v -o v.c compiler`
|
||||||
println('CC() $v.out_name')
|
|
||||||
if v.out_name.ends_with('.c') || v.out_name.ends_with('.js') {
|
if v.out_name.ends_with('.c') || v.out_name.ends_with('.js') {
|
||||||
// Translating V code to JS by launching vjs.
|
// Translating V code to JS by launching vjs.
|
||||||
// Using a separate process for V.js is for performance mostly,
|
// Using a separate process for V.js is for performance mostly,
|
||||||
|
Loading…
Reference in New Issue
Block a user