Make great documentation goal 1.2, and plan the README's reorganisation and the nested-template gaps #33

Open
lilleman wants to merge 966 commits from worktree-todo-relative-dates-exact-counts into main
2 changed files with 5 additions and 5 deletions
Showing only changes of commit d5d1e86b1c - Show all commits
+4 -4
View File
@@ -36,13 +36,13 @@ func TestPathCoverStopsAtAChoice(t *testing.T) {
}
}
func TestDrawPathPanicsOnAnUnprovedPath(t *testing.T) {
func TestDrawStepsPanicsOnAStepItsNodeLacks(t *testing.T) {
defer func() {
if r := recover(); r == nil || !strings.Contains(fmt.Sprint(r), `plain.f: no field "f"`) {
t.Errorf("drawPath(plain, f) recovered %v, want a panic naming the path and the missing field", r)
if r := recover(); r == nil || !strings.Contains(fmt.Sprint(r), `no field "f"`) {
t.Errorf("drawSteps(plain, f) recovered %v, want a panic naming the missing field", r)
}
}()
drawPath(compiled(t, `"plain"`), []string{"f"}, "plain", &pathDraw{s: engine(1).rand, pins: &pinSet{}})
drawSteps(engine(1).rand, compiled(t, `"plain"`), []pathStep{{kind: stepField, name: "f"}}, &pinSet{}, nil, nil)
}
func TestDeepDottedPath(t *testing.T) {
+1 -1
View File
@@ -1095,7 +1095,7 @@ func TestTableReadReportsTheTablesADrawPins(t *testing.T) {
selected, drawn := tr.pins, tr.drawn
for i := 0; i < 20; i++ {
var pins pinSet
drawPath(head, a.tail, a.head, &pathDraw{s: f.rand, pins: &pins})
drawSteps(f.rand, head, a.steps, &pins, nil, nil)
want := map[*table]bool{}
pins.each(func(tbl *table, _ int) {
if _, isSelected := selected.pinned(tbl); !isSelected {