Hold a spilled pin set apart from what enters beside it

This commit is contained in:
2026-09-24 10:01:40 +02:00
committed by Lillem4n
parent 00e6b7d357
commit bbcb259b02
+10
View File
@@ -1004,6 +1004,16 @@ func TestEnteredRowsAgreeWithPinning(t *testing.T) {
}
}
}
var spilled pinSet
for i := 0; i <= len(spilled.inline); i++ {
spilled = spilled.entered(&table{path: strconv.Itoa(i)}, 0, false)
}
_ = spilled.entered(&table{path: "past"}, 0, false)
n := 0
spilled.each(func(*table, int) { n++ })
if n != len(spilled.inline)+1 {
t.Errorf("entering a row beside a spilled pin set leaves it holding %d rows, want %d", n, len(spilled.inline)+1)
}
}
// TestCellReadsMeetWhereTheRenderPairsTheRows reads what the TSVs below do not show: region 01's