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

test: run all tests even if some fail

This commit is contained in:
Adam Stankiewicz
2020-06-13 16:20:45 +02:00
committed by GitHub
parent 183924e2a8
commit f2a75d5223
3 changed files with 7 additions and 4 deletions

View File

@ -237,7 +237,7 @@ pub:
}
fn __print_assert_failure(i &VAssertMetaInfo) {
eprintln('${i.fpath}:${i.line_nr+1}: FAIL: fn ${i.fn_name}: assert ${i.src}')
if i.op != 'call' {
if i.op.len > 0 && i.op != 'call' {
eprintln(' left value: ${i.llabel} = ${i.lvalue}')
eprintln(' right value: ${i.rlabel} = ${i.rvalue}')
}