Hull source tests: a Station 32 cells long fits the grid (height bound, not only width)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-10-22 01:15:11 +02:00
commit 8bfb06ed64

View file

@ -185,6 +185,10 @@ class HullTypeTests(unittest.TestCase):
self.assertEqual(wide.failed(), [GRID])
self.assertEqual([c.detail for c in wide.build().checks if c.name == GRID],
["33 x 5 cells, at most 32 a side"])
long = self.fixture("Station", secondary=box(-1, 1, -32, 32, 2, 3))
long.parts["brief"] = ("", brief(length=(8, 70)))
self.assertEqual(long.failed(), [])
self.assertEqual([c.detail for c in long.build().checks if c.name == GRID], ["3 x 32 cells, at most 32 a side"])
long = self.fixture("Station", secondary=box(-1, 1, -33, 33, 2, 3))
long.parts["brief"] = ("", brief(length=(8, 70)))
self.assertEqual(long.failed(), [GRID])