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

vfmt: change all '$expr' to '${expr}' (#16428)

This commit is contained in:
yuyi
2022-11-15 21:53:13 +08:00
committed by GitHub
parent 56239b4a23
commit 017ace6ea7
859 changed files with 7156 additions and 7135 deletions

View File

@ -32,7 +32,7 @@ fn testsuite_end() {
fn test_getpid() {
pid := os.getpid()
eprintln('current pid: $pid')
eprintln('current pid: ${pid}')
assert pid != 0
}
@ -49,7 +49,7 @@ fn test_run() {
break
}
$if trace_process_output ? {
os.system('ps -opid= -oppid= -ouser= -onice= -of= -ovsz= -orss= -otime= -oargs= -p $p.pid')
os.system('ps -opid= -oppid= -ouser= -onice= -of= -ovsz= -orss= -otime= -oargs= -p ${p.pid}')
}
time.sleep(50 * time.millisecond)
i++
@ -58,7 +58,7 @@ fn test_run() {
assert p.code == 0
assert p.status == .exited
//
eprintln('polling iterations: $i')
eprintln('polling iterations: ${i}')
assert i < 50
p.close()
}
@ -86,8 +86,8 @@ fn test_slurping_output() {
p.close()
$if trace_process_output ? {
eprintln('---------------------------')
eprintln('p output: "$output"')
eprintln('p errors: "$errors"')
eprintln('p output: "${output}"')
eprintln('p errors: "${errors}"')
eprintln('---------------------------')
}
// dump(output)