Made the interpreter pass most of the mycology test suite

This commit is contained in:
Julien Dessaux 2021-09-24 01:26:49 +02:00
parent 198efceb1f
commit da7e7dae2b
13 changed files with 206 additions and 35 deletions

View file

@ -96,3 +96,7 @@ func (f *Field) Set(x, y, v int) {
}
}
}
func (f Field) Dump() (int, int, int, int) {
return f.x, f.y, f.lx, f.ly
}

View file

@ -329,3 +329,9 @@ func TestGetAndSetOnEmptyLines(t *testing.T) {
field.Set(0, -1, 'c')
require.Equal(t, &f, field)
}
func TestDump(t *testing.T) {
// nothing to test really
f := Field{}
f.Dump()
}