aboutsummaryrefslogtreecommitdiff
path: root/pkg/field/step_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/step_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/step_test.go')
-rw-r--r--pkg/field/step_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/field/step_test.go b/pkg/field/step_test.go
index e21540c..aecf89d 100644
--- a/pkg/field/step_test.go
+++ b/pkg/field/step_test.go
@@ -32,7 +32,7 @@ func TestStep(t *testing.T) {
file, err := os.Open(tc.input)
require.NoError(t, err, "Failed to open file")
defer file.Close()
- field, err := LoadFile(file)
+ field, err := Load(file)
x, y := field.Step(tc.x, tc.y, tc.dx, tc.dy)
require.NoError(t, err)
require.Equal(t, tc.ex, x, "Invalid x value")