Test that shipped categories load when first reached, from a current index, and render as the whole load

This commit is contained in:
2026-10-03 17:07:36 +02:00
committed by Lillem4n
parent cff6533e7b
commit 75597664e0
3 changed files with 211 additions and 9 deletions
+1 -5
View File
@@ -12,11 +12,7 @@ const shapePin = "testdata/shipped_shape.txt"
// REPIN=1 rewrites the pin.
func TestShippedShapeIsPinned(t *testing.T) {
f, err := New(WithSeed(1))
if err != nil {
t.Fatal(err)
}
got := shippedShape(f)
got := shippedShape(newShippedWhole(t, WithSeed(1)))
if os.Getenv("REPIN") == "1" {
if err := os.WriteFile(shapePin, []byte(got), 0o644); err != nil {
t.Fatal(err)