mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: fix x64_test.v
This commit is contained in:
parent
78cbb7746f
commit
2805f8d0cc
@ -1,3 +1,3 @@
|
||||
fn main() {
|
||||
println('hello from x64')
|
||||
print('hello from x64')
|
||||
}
|
||||
|
@ -49,15 +49,15 @@ fn test_x64() {
|
||||
panic(err)
|
||||
}
|
||||
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 {
|
||||
println(term.red('FAIL'))
|
||||
println('============')
|
||||
println('expected:')
|
||||
println(expected)
|
||||
println('expected: "$expected" len=$expected.len')
|
||||
println('============')
|
||||
println('found:')
|
||||
println(found)
|
||||
println('found:"$found" len=$found.len')
|
||||
println('============\n')
|
||||
bench.fail()
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user