1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci,parser: fix error in v_parser_test.v (#15936)

This commit is contained in:
yuyi 2022-10-01 18:18:46 +08:00 committed by GitHub
parent fe597b7172
commit f6a68003d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,8 @@ fn test_one() {
}
mut checker := checker.new_checker(table, vpref)
checker.check(program)
res, _, _, _ := c.gen([program], table, vpref).replace('\n', '').trim_space().after('#endif')
mut res, _, _, _ := c.gen([program], table, vpref)
res = res.replace('\n', '').trim_space().after('#endif')
println(res)
ok := expected == res
println(res)
@ -148,7 +149,8 @@ fn test_parse_expr() {
global_scope: scope
}
chk.check(program)
res, _, _, _ := c.gen([program], table, vpref).after('#endif')
mut res, _, _, _ := c.gen([program], table, vpref)
res = res.after('#endif')
println('========')
println(res)
println('========')