aboutsummaryrefslogtreecommitdiff
path: root/pkg/pointer/pointer_test.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-21 00:27:57 +0200
committerJulien Dessaux2021-09-21 00:27:57 +0200
commit309dcb5a029d9b40c72fa8bc01a3009389b66e8e (patch)
tree21d3456847ec32c8219c3b7d935f6c3cec5d5058 /pkg/pointer/pointer_test.go
parentBegan implementing the Instruction Pointer (diff)
downloadgofunge98-309dcb5a029d9b40c72fa8bc01a3009389b66e8e.tar.gz
gofunge98-309dcb5a029d9b40c72fa8bc01a3009389b66e8e.tar.bz2
gofunge98-309dcb5a029d9b40c72fa8bc01a3009389b66e8e.zip
Continued implementing the Instruction Pointer
Diffstat (limited to '')
-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 3a77507..b6a3898 100644
--- a/pkg/pointer/pointer_test.go
+++ b/pkg/pointer/pointer_test.go
@@ -12,14 +12,14 @@ func TestNewPointer(t *testing.T) {
require.Equal(t, NewPointer(), &Pointer{delta: &Delta{1, 0}})
}
-func TestForkPointer(t *testing.T) {
+func TestSplit(t *testing.T) {
file, err := os.Open("../field/test_data/hello.b98")
require.NoError(t, err, "Failed to open file")
defer file.Close()
f, err := field.Load(file)
require.NoError(t, err)
p := NewPointer()
- p2 := p.ForkPointer()
+ p2 := p.Split()
// We check that p2 is a real copy
p.Step(*f)
p2.Step(*f)