aboutsummaryrefslogtreecommitdiff
path: root/pkg/pointer/pointer_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/pointer/pointer_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/pointer/pointer_test.go')
-rw-r--r--pkg/pointer/pointer_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/pointer/pointer_test.go b/pkg/pointer/pointer_test.go
index 4d3b6bf..658528d 100644
--- a/pkg/pointer/pointer_test.go
+++ b/pkg/pointer/pointer_test.go
@@ -23,8 +23,8 @@ func TestSplit(t *testing.T) {
// We check that p2 is a real copy
p.Step(*f)
p2.Step(*f)
- require.Equal(t, p, &Pointer{x: 1, y: 0, dx: 1})
- require.Equal(t, p2, &Pointer{x: 1, y: 0, dx: 1})
+ require.Equal(t, &Pointer{x: 1, y: 0, dx: 1}, p)
+ require.Equal(t, &Pointer{x: 1, y: 0, dx: 1}, p2)
}
func TestStep(t *testing.T) { // Step is thoroughly tested in the field package