fmt: fix tests
parent
473d9fef55
commit
7369cb7b86
|
@ -5,6 +5,7 @@ import (
|
|||
v.fmt
|
||||
v.parser
|
||||
v.table
|
||||
v.pref
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -43,7 +44,7 @@ fn test_fmt() {
|
|||
continue
|
||||
}
|
||||
table := table.new_table()
|
||||
file_ast := parser.parse_file(ipath, table, .parse_comments)
|
||||
file_ast := parser.parse_file(ipath, table, .parse_comments, &pref.Preferences{})
|
||||
result_ocontent := fmt.fmt(file_ast, table)
|
||||
if expected_ocontent != result_ocontent {
|
||||
fmt_bench.fail()
|
||||
|
|
|
@ -5,6 +5,7 @@ import (
|
|||
v.fmt
|
||||
v.parser
|
||||
v.table
|
||||
v.pref
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -45,7 +46,7 @@ fn test_fmt() {
|
|||
continue
|
||||
}
|
||||
table := table.new_table()
|
||||
file_ast := parser.parse_file(ipath, table, .parse_comments)
|
||||
file_ast := parser.parse_file(ipath, table, .parse_comments, &pref.Preferences{})
|
||||
result_ocontent := fmt.fmt(file_ast, table)
|
||||
if expected_ocontent != result_ocontent {
|
||||
fmt_bench.fail()
|
||||
|
|
|
@ -76,7 +76,7 @@ x := 10
|
|||
8+4
|
||||
'
|
||||
table := &table.Table{}
|
||||
prog := parse_file(s, table, .skip_comments)
|
||||
prog := parse_file(s, table, .skip_comments, &pref.Preferences{})
|
||||
mut checker := checker.new_checker(table)
|
||||
checker.check(prog)
|
||||
res := gen.cgen([prog], table)
|
||||
|
|
Loading…
Reference in New Issue