tests: fix fmt tests

pull/4369/head^2
Alexander Medvednikov 2020-04-12 17:49:31 +02:00
parent 0db0c642c3
commit 810a0725ec
7 changed files with 21 additions and 3 deletions

View File

@ -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)

View File

@ -2,3 +2,6 @@ import (
math
os
)
fn main() {
}

View File

@ -1,2 +1,5 @@
import math
import os
fn main() {
}

View File

@ -3,3 +3,6 @@ import (
os
math.complex as c
)
fn main() {
}

View File

@ -1,3 +1,6 @@
import math as m
import os
import math.complex as c
fn main() {
}

View File

@ -1 +1,4 @@
import os
fn main() {
}

View File

@ -1 +1,4 @@
import os
fn main() {
}