tests: fix x64_test.v

pull/4518/head
Alexander Medvednikov 2020-04-16 14:19:14 +03:00
parent 78cbb7746f
commit 2805f8d0cc
2 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,3 @@
fn main() { fn main() {
println('hello from x64') print('hello from x64')
} }

View File

@ -49,15 +49,15 @@ fn test_x64() {
panic(err) panic(err)
} }
expected = expected.trim_space().trim('\n').replace('\r\n', '\n') expected = expected.trim_space().trim('\n').replace('\r\n', '\n')
found := res.output.trim_space().trim('\n').replace('\r\n', '\n') mut found := res.output.trim_space().trim('\n').replace('\r\n', '\n')
found = found[..found.len-1] // remove ACK char TODO fix this
if expected != found { if expected != found {
println(term.red('FAIL')) println(term.red('FAIL'))
println('============') println('============')
println('expected:') println('expected: "$expected" len=$expected.len')
println(expected)
println('============') println('============')
println('found:') println('found:"$found" len=$found.len')
println(found)
println('============\n') println('============\n')
bench.fail() bench.fail()
continue continue