Multiline literal strings
This commit is contained in:
+12
-1
@@ -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 {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user