aboutsummaryrefslogtreecommitdiff
path: root/pkg/field/utils_test.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-22 23:42:16 +0200
committerJulien Dessaux2021-09-22 23:42:16 +0200
commit6f70a7237b77ad75a3adcf2dd30bbf75376451a5 (patch)
treef59d537b52663110da8c7c0907eaec0b9564edc6 /pkg/field/utils_test.go
parentFinished implementing the stack stack (diff)
downloadgofunge98-6f70a7237b77ad75a3adcf2dd30bbf75376451a5.tar.gz
gofunge98-6f70a7237b77ad75a3adcf2dd30bbf75376451a5.tar.bz2
gofunge98-6f70a7237b77ad75a3adcf2dd30bbf75376451a5.zip
Fixed test order mistake between expected value and got value
Diffstat (limited to 'pkg/field/utils_test.go')
-rw-r--r--pkg/field/utils_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/field/utils_test.go b/pkg/field/utils_test.go
index 59a7cee..9c1f7c7 100644
--- a/pkg/field/utils_test.go
+++ b/pkg/field/utils_test.go
@@ -319,13 +319,13 @@ func TestGetAndSetOnEmptyLines(t *testing.T) {
field, err := Load(file)
field.Set(0, 3, '#')
v := field.Get(0, 3)
- require.Equal(t, v, int('#'))
+ require.Equal(t, int('#'), v)
v = field.Get(0, 2)
- require.Equal(t, v, int(' '))
+ require.Equal(t, int(' '), v)
field.Set(0, 2, 'a')
field.Set(0, -4, 'b')
v = field.Get(0, -1)
- require.Equal(t, v, int(' '))
+ require.Equal(t, int(' '), v)
field.Set(0, -1, 'c')
- require.Equal(t, field, &f)
+ require.Equal(t, &f, field)
}