Make great documentation goal 1.2, and plan the README's reorganisation and the nested-template gaps #33
+3
-3
@@ -59,11 +59,11 @@ func TestWalkCoverStopsAtAChoice(t *testing.T) {
|
|||||||
|
|
||||||
func TestDrawPathPanicsOnAnUnprovedPath(t *testing.T) {
|
func TestDrawPathPanicsOnAnUnprovedPath(t *testing.T) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r == nil || !strings.Contains(fmt.Sprint(r), `no field "f"`) {
|
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 missing field", r)
|
t.Errorf("drawPath(plain, f) recovered %v, want a panic naming the path and the missing field", r)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
drawPath(compiled(t, `"plain"`), []string{"f"}, &pinSet{}, &pathDraws{s: engine(1).rand})
|
drawPath(compiled(t, `"plain"`), []string{"f"}, "plain.f", &pinSet{}, &pathDraws{s: engine(1).rand})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestDeepDottedPath(t *testing.T) {
|
func TestDeepDottedPath(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user