aboutsummaryrefslogtreecommitdiff
path: root/pkg/field/blank_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/field/blank_test.go')
-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) {