Fixed binary buildin functions and tests.

This commit is contained in:
Marvin Blum
2016-01-14 11:44:02 +01:00
parent e3a7c5d6ac
commit 737b96d5ac
9 changed files with 2269 additions and 57 deletions

18
src/types/loader_test.go Normal file
View File

@@ -0,0 +1,18 @@
package types_test
import (
"testing"
"types"
)
func TestTypesGetFunction(t *testing.T) {
if err := types.LoadTypes("../../test/types"); err != nil {
t.Error(err)
}
function := types.GetFunction("hint")
if function == nil {
t.Error("Function 'hint' not found in type list")
}
}