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)
|
// TODO: impl typeof properly (probably not going to be a fn call)
|
||||||
return table.string_type
|
return table.string_type
|
||||||
}
|
}
|
||||||
//if c.fileis('json_test.v') {
|
// if c.fileis('json_test.v') {
|
||||||
//println(fn_name)
|
// println(fn_name)
|
||||||
//}
|
// }
|
||||||
if fn_name == 'json.encode' {
|
if fn_name == 'json.encode' {
|
||||||
}
|
}
|
||||||
// look for function in format `mod.fn` or `fn` (main/builtin)
|
// look for function in format `mod.fn` or `fn` (main/builtin)
|
||||||
|
|
|
@ -2,3 +2,6 @@ import (
|
||||||
math
|
math
|
||||||
os
|
os
|
||||||
)
|
)
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
}
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
}
|
||||||
|
|
|
@ -3,3 +3,6 @@ import (
|
||||||
os
|
os
|
||||||
math.complex as c
|
math.complex as c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
}
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
import math as m
|
import math as m
|
||||||
import os
|
import os
|
||||||
import math.complex as c
|
import math.complex as c
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
}
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
}
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue