Multiline literal strings

This commit is contained in:
Thomas Pelletier
2021-02-06 08:01:38 -05:00
parent 736a75748b
commit a466f0ca79
2 changed files with 37 additions and 9 deletions
+12 -1
View File
@@ -39,7 +39,7 @@ a = false`,
`[[foo]]`,
}
func TestParse(t *testing.T) {
func TestScan(t *testing.T) {
for i, data := range inputs {
t.Run(fmt.Sprintf("example %d", i), func(t *testing.T) {
fmt.Printf("input:\n\t`%s`\n", data)
@@ -55,6 +55,17 @@ func TestParse(t *testing.T) {
}
}
func TestParse(t *testing.T) {
for i, data := range inputs {
t.Run(fmt.Sprintf("example %d", i), func(t *testing.T) {
fmt.Printf("input:\n\t`%s`\n", data)
b := []byte(data)
err := parse(b)
require.NoError(t, err)
})
}
}
type noopParser struct {
}