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:
parent
fe597b7172
commit
f6a68003d3
@ -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('========')
|
||||
|
Loading…
Reference in New Issue
Block a user