fix: correct border strip test data to avoid false internal gaps
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 36s
CI / test-go-edu-search (push) Successful in 26s
CI / test-python-klausur (push) Failing after 1m52s
CI / test-python-agent-core (push) Successful in 14s
CI / test-nodejs-website (push) Successful in 17s

Content word_boxes in test used x-spacing (i%3)*100 which created
internal gaps larger than the border-to-content gap. Changed to
(i%2)*51 so content words overlap and the border gap remains dominant.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-03-21 17:24:33 +01:00
parent c0e1118870
commit 2acf8696bf

View File

@@ -1117,7 +1117,9 @@ class TestBorderStripFilter:
]
content_wbs = []
for i in range(20):
content_wbs.append(self._make_wb(f"word{i}", 179 + (i % 3) * 100, 100 + i * 40))
# Place content words at x=179 and x=280 (gap=1px between them,
# much smaller than the 45px border-to-content gap)
content_wbs.append(self._make_wb(f"word{i}", 179 + (i % 2) * 51, 100 + i * 40))
# Build zone with cells
cells = []
# Border-only cells