tests: cleanup look for assertions. Fix jump to failure in emacs/vim again

pull/4290/head
Delyan Angelov 2020-04-08 03:45:49 +03:00
parent 8e06f4e519
commit f93445a022
2 changed files with 2 additions and 3 deletions

View File

@ -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')
}

View File

@ -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
}
// ////////////////////////////////////////////////////////////////