This commit is contained in:
Mike Farah
2020-11-18 10:32:30 +11:00
parent 3356061e1e
commit dcacad1e7e
14 changed files with 706 additions and 55 deletions
+5
View File
@@ -15,6 +15,7 @@ import (
type expressionScenario struct {
description string
subdescription string
document string
expression string
expected []string
@@ -123,6 +124,10 @@ func documentScenarios(t *testing.T, title string, scenarios []expressionScenari
} else {
writeOrPanic(w, fmt.Sprintf("### Example %v\n", index))
}
if s.subdescription != "" {
writeOrPanic(w, s.subdescription)
writeOrPanic(w, "\n\n")
}
formattedDoc := ""
if s.document != "" {
if s.dontFormatInputForDoc {