From 0ec93d0a1d4c79068f0ab2d10e09a3fa06c5af16 Mon Sep 17 00:00:00 2001 From: Madison Rye Progress Date: Wed, 18 Mar 2026 23:01:19 -0700 Subject: [PATCH] Tests --- state/cursor_test.go | 2 +- state/history_test.go | 2 +- state/state_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/state/cursor_test.go b/state/cursor_test.go index f373196..fb0256f 100644 --- a/state/cursor_test.go +++ b/state/cursor_test.go @@ -8,7 +8,7 @@ import ( func TestCursor(t *testing.T) { Convey("Given a cursor", t, func() { - s := New(4, 4) + s := New(4, 4, false) So(*s.cursor, ShouldResemble, Point{0, 0}) Convey("When moving cell to cell", func() { diff --git a/state/history_test.go b/state/history_test.go index b5a8378..660ca8b 100644 --- a/state/history_test.go +++ b/state/history_test.go @@ -12,7 +12,7 @@ func TestHistory(t *testing.T) { Convey("Given a game's history", t, func() { Convey("You can maintain a history of all actions", func() { - s := New(2, 2) + s := New(2, 2, false) s.Flag() s.Mark() s.Clear() diff --git a/state/state_test.go b/state/state_test.go index 4e91bd4..5bea318 100644 --- a/state/state_test.go +++ b/state/state_test.go @@ -10,7 +10,7 @@ import ( func TestState(t *testing.T) { Convey("Given a game state", t, func() { - s := New(2, 2) + s := New(2, 2, false) for x := 0; x < 4; x++ { for y := 0; y < 4; y++ { s.cells.kill(Point{x, y})