aboutsummaryrefslogtreecommitdiff
path: root/pkg/field/field_test.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-20 01:22:18 +0200
committerJulien Dessaux2021-09-20 01:22:18 +0200
commitae7f4d5acfe2ab97bd51523aed24b6f6aa74523e (patch)
tree7f8cded5121abcf0ea61ce2ffbae9019f730b041 /pkg/field/field_test.go
parentImplemented function to set a field value (diff)
downloadgofunge98-ae7f4d5acfe2ab97bd51523aed24b6f6aa74523e.tar.gz
gofunge98-ae7f4d5acfe2ab97bd51523aed24b6f6aa74523e.tar.bz2
gofunge98-ae7f4d5acfe2ab97bd51523aed24b6f6aa74523e.zip
Refactoring
Diffstat (limited to 'pkg/field/field_test.go')
-rw-r--r--pkg/field/field_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/field/field_test.go b/pkg/field/field_test.go
index 767a0dd..66b0291 100644
--- a/pkg/field/field_test.go
+++ b/pkg/field/field_test.go
@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"
)
-func TestLoadFile(t *testing.T) {
+func TestLoad(t *testing.T) {
// minimal b98 file
minimalField := Field{
x: 0,
@@ -149,7 +149,7 @@ func TestLoadFile(t *testing.T) {
} else {
fd = file
}
- valid, err := LoadFile(fd)
+ valid, err := Load(fd)
if tc.expectedError != nil {
require.Error(t, err)
requireErrorTypeMatch(t, err, tc.expectedError)