tests: cleanup failed assertion output

pull/7587/head
Delyan Angelov 2020-12-26 19:24:52 +02:00
parent 9a5bbc3101
commit 90175e95d3
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 4 additions and 4 deletions

View File

@ -27,14 +27,14 @@ fn cb_assertion_failed(i &VAssertMetaInfo) {
if i.op.len > 0 && i.op != 'call' {
mut slvalue := '$i.lvalue'
mut srvalue := '$i.rvalue'
lpostfix := if slvalue == i.llabel { '.' } else { '<= `$i.llabel`' }
rpostfix := if srvalue == i.rlabel { '.' } else { '<= `$i.rlabel`' }
// lpostfix := if slvalue == i.llabel { '.' } else { '<= `$i.llabel`' }
// rpostfix := if srvalue == i.rlabel { '.' } else { '<= `$i.rlabel`' }
if use_color {
slvalue = term.bold(term.yellow(slvalue))
srvalue = term.bold(term.yellow(srvalue))
}
eprintln(' left value: $slvalue $lpostfix')
eprintln(' right value: $srvalue $rpostfix')
eprintln(' left value: $slvalue')
eprintln(' right value: $srvalue')
}
}