Coverage 100%

This commit is contained in:
Madison Rye Progress
2026-03-18 14:33:57 -07:00
parent 3f1053ea61
commit bbc87afee1
5 changed files with 15 additions and 20 deletions

View File

@ -23,6 +23,10 @@ func TestField(t *testing.T) {
So(f.i(Point{1, 1}), ShouldEqual, 3)
})
Convey("You can get the byte for a particular cell", func() {
So(f.cell(Point{0, 0}), ShouldEqual, cell(0))
})
Convey("You can get a string representation of the field", func() {
So(f.String(), ShouldEqual, "\x00\x00\x00\x00")
})