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

add production mode tests

Due to the inability to detect warnings in REPL tests, I implemented running something very similar, but with the -prod flag enabled.
(See https://github.com/vlang/v/pull/2536)

There is also a minor change in os.walk_ext to not add duplicated path separators:
/path//file.ext -> /path/file.ext
This commit is contained in:
Toby Webb
2019-11-09 17:35:26 +01:00
committed by Alexander Medvednikov
parent da574640e7
commit ab37081f02
7 changed files with 108 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ import compiler.tests.repl.runner
import benchmark
fn test_the_v_compiler_can_be_invoked() {
vexec := runner.full_path_to_v()
vexec := runner.full_path_to_v(5)
println('vexecutable: $vexec')
assert vexec != ''