tests: cleanup look for assertions. Fix jump to failure in emacs/vim again
parent
8e06f4e519
commit
f93445a022
|
@ -21,8 +21,7 @@ fn cb_assertion_failed(filename string, line int, sourceline string, funcname st
|
|||
}
|
||||
final_filename := if use_relative_paths { filename } else { os.real_path(filename) }
|
||||
final_funcname := funcname.replace('main__', '').replace('__', '.')
|
||||
eprintln('File : $final_filename:$line')
|
||||
eprintln('Function: $final_funcname')
|
||||
eprintln('$final_filename:$line: failed assert in ${final_funcname}')
|
||||
eprintln('Source : $sourceline')
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ fn (b mut BenchedTests) testing_step_end() {
|
|||
// ////////////////////////////////////////////////////////////////
|
||||
if ok_diff == 0 && fail_diff == 0 {
|
||||
b.bench.neither_fail_nor_ok()
|
||||
println(INNER_INDENT + b.bench.step_message_ok('NO asserts | ') + b.fn_name())
|
||||
println(INNER_INDENT + b.bench.step_message_ok(' NO asserts | ') + b.fn_name())
|
||||
return
|
||||
}
|
||||
// ////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue