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
Showing only changes of commit dc9d962690 - Show all commits
+12
View File
@@ -332,3 +332,15 @@ func TestAColumnReadingABoundColumnIsThatColumn(t *testing.T) {
t.Errorf("the pick was null %d times in 100 records, want both outcomes", nulls)
}
}
func TestAFreshReadInsideANamedPickReadsNoneOfThePick(t *testing.T) {
f := engine(5)
src := `{"format":"{w as p}{p.a}|{p.a.b}","w":{"format":"{a}","a":{"format":"{c}|{b}","b":["1","2","3"],"c":{"format":"{b}","b":["x","y","z"]}}}}`
want := regexp.MustCompile(`^[xyz]\|([123])\|([123])$`)
for i := 0; i < 100; i++ {
got := mustRender(t, f, src)
if m := want.FindStringSubmatch(got); m == nil || m[1] != m[2] {
t.Fatalf("draw %d = %q, want p.a's c drawn afresh and its b read from p's pick", i, got)
}
}
}