mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
Travis: run tests for Windows (#1403)
This commit is contained in:
parent
7918a790b4
commit
37a0e6ebef
4 changed files with 6 additions and 31 deletions
|
@ -3086,10 +3086,10 @@ fn (p mut Parser) assert_statement() {
|
|||
p.gen('bool $tmp = ')
|
||||
p.check_types(p.bool_expression(), 'bool')
|
||||
// TODO print "expected: got" for failed tests
|
||||
filename := p.file_path
|
||||
filename := p.file_path.replace('\\', '\\\\')
|
||||
p.genln(';\n
|
||||
if (!$tmp) {
|
||||
puts("\\x1B[31mFAILED: $p.cur_fn.name() in $filename:$p.scanner.line_nr\\x1B[0m");
|
||||
if (!$tmp) {
|
||||
println(tos2("\\x1B[31mFAILED: $p.cur_fn.name() in $filename:$p.scanner.line_nr\\x1B[0m"));
|
||||
g_test_ok = 0 ;
|
||||
// TODO
|
||||
// Maybe print all vars in a test function if it fails?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue