mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Fixed binary buildin functions and tests.
This commit is contained in:
18
src/types/loader_test.go
Normal file
18
src/types/loader_test.go
Normal 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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user