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 ab8f375ae4 - Show all commits
+2 -2
View File
@@ -7,7 +7,7 @@ import (
"testing" "testing"
) )
func TestPathCheckStopsAtAMissingSegment(t *testing.T) { func TestCompiledPathStopsAtAMissingSegment(t *testing.T) {
n := compiled(t, `{"format":"{a}","a":{"format":"{b}","b":"leaf"}}`) n := compiled(t, `{"format":"{a}","a":{"format":"{b}","b":"leaf"}}`)
if leaves := compilePath(n, []string{"a", "b"}).leaves; len(leaves) != 1 { if leaves := compilePath(n, []string{"a", "b"}).leaves; len(leaves) != 1 {
t.Fatalf("compilePath(a.b).leaves = %v, want the one leaf", leaves) t.Fatalf("compilePath(a.b).leaves = %v, want the one leaf", leaves)
@@ -22,7 +22,7 @@ func TestPathCheckStopsAtAMissingSegment(t *testing.T) {
} }
} }
func TestPathCheckChoiceConsumesNoSegment(t *testing.T) { func TestCompiledPathChoiceConsumesNoSegment(t *testing.T) {
n := compiled(t, `[{"format":"{f}","f":"1"},{"format":"{f}","f":"2"}]`) n := compiled(t, `[{"format":"{f}","f":"1"},{"format":"{f}","f":"2"}]`)
if leaves := compilePath(n, []string{"f"}).leaves; len(leaves) != 2 { if leaves := compilePath(n, []string{"f"}).leaves; len(leaves) != 2 {
t.Fatalf("compilePath through a choice = %v, want both variants' f", leaves) t.Fatalf("compilePath through a choice = %v, want both variants' f", leaves)