aboutsummaryrefslogtreecommitdiff
path: root/pkg/field/blank_test.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-01 17:24:09 +0200
committerJulien Dessaux2021-10-01 18:42:39 +0200
commit749caa9e261d40c6af7f2516d3d3a3c30ae95f9a (patch)
tree510be574191d6057ed26c1cc48d649c7d0f4dca4 /pkg/field/blank_test.go
parentFixed resizing bugs in certain situations not covered by mycology (diff)
downloadgofunge98-749caa9e261d40c6af7f2516d3d3a3c30ae95f9a.tar.gz
gofunge98-749caa9e261d40c6af7f2516d3d3a3c30ae95f9a.tar.bz2
gofunge98-749caa9e261d40c6af7f2516d3d3a3c30ae95f9a.zip
Fixed some more resizing bugs in certain situations not covered by mycology
Diffstat (limited to '')
-rw-r--r--pkg/field/blank_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/field/blank_test.go b/pkg/field/blank_test.go
index 260c50b..92e446e 100644
--- a/pkg/field/blank_test.go
+++ b/pkg/field/blank_test.go
@@ -45,13 +45,13 @@ func TestBlankInside(t *testing.T) {
func TestBlankInsideLine(t *testing.T) {
input := Field{
- x: 0,
+ x: -5,
y: 0,
- lx: 3,
+ lx: 8,
ly: 3,
lines: []Line{
Line{x: 0, l: 3, columns: []int{'@', 'a', 'b'}},
- Line{x: 0, l: 1, columns: []int{'d'}},
+ Line{x: -5, l: 1, columns: []int{'d'}},
Line{x: 0, l: 1, columns: []int{'c'}},
},
}
@@ -62,7 +62,7 @@ func TestBlankInsideLine(t *testing.T) {
ly: 3,
lines: []Line{
Line{x: 0, l: 3, columns: []int{'@', 'a', 'b'}},
- Line{columns: []int{}},
+ Line{x: -5, columns: []int{}},
Line{x: 0, l: 1, columns: []int{'c'}},
},
}
@@ -74,7 +74,7 @@ func TestBlankInsideLine(t *testing.T) {
inputY int
expected *Field
}{
- {"inside", &input, 0, 1, &expected},
+ {"inside", &input, -5, 1, &expected},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {