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

View File

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

View File

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

View File

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

View File

@ -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() {
}

View File

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

View File

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