tests: fix fmt tests
parent
0db0c642c3
commit
810a0725ec
|
@ -348,9 +348,9 @@ pub fn (c mut Checker) call_fn(call_expr mut ast.CallExpr) table.Type {
|
|||
// TODO: impl typeof properly (probably not going to be a fn call)
|
||||
return table.string_type
|
||||
}
|
||||
//if c.fileis('json_test.v') {
|
||||
//println(fn_name)
|
||||
//}
|
||||
// if c.fileis('json_test.v') {
|
||||
// println(fn_name)
|
||||
// }
|
||||
if fn_name == 'json.encode' {
|
||||
}
|
||||
// look for function in format `mod.fn` or `fn` (main/builtin)
|
||||
|
|
|
@ -2,3 +2,6 @@ import (
|
|||
math
|
||||
os
|
||||
)
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
import math
|
||||
import os
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
|
@ -3,3 +3,6 @@ import (
|
|||
os
|
||||
math.complex as c
|
||||
)
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import math as m
|
||||
import os
|
||||
import math.complex as c
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
import os
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
import os
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue