diff --git a/lexer_test.go b/lexer_test.go index e32c292..a096f74 100644 --- a/lexer_test.go +++ b/lexer_test.go @@ -8,7 +8,7 @@ import ( "code.ndumas.com/ndumas/wikilink-parser" ) -var testCases = []tc{ +var SingleWikilink = []tc{ { name: "wikilink", in: "[[wikilink]]", @@ -197,7 +197,7 @@ var testCases = []tc{ } func Test_ObsidianWikilinks_LinksEndOfMultiLineInput(t *testing.T) { - for _, tc := range testCases { + for _, tc := range SingleWikilink { mut, test := mutateTestCase( tc, " test data please ignore.\nbling blonk more lines\nbling blong\nthis is a", @@ -218,7 +218,7 @@ func Test_ObsidianWikilinks_LinksEndOfMultiLineInput(t *testing.T) { } func Test_ObsidianWikilinks_LinksStartOfMultiLineInput(t *testing.T) { - for _, tc := range testCases { + for _, tc := range SingleWikilink { mut, test := mutateTestCase( tc, "", @@ -239,7 +239,7 @@ func Test_ObsidianWikilinks_LinksStartOfMultiLineInput(t *testing.T) { } func Test_ObsidianWikilinks_LinksStartOfInput(t *testing.T) { - for _, tc := range testCases { + for _, tc := range SingleWikilink { mut, test := mutateTestCase( tc, "", @@ -257,7 +257,7 @@ func Test_ObsidianWikilinks_LinksStartOfInput(t *testing.T) { } func Test_ObsidianWikilinks_LinksEndOfInput(t *testing.T) { - for _, tc := range testCases { + for _, tc := range SingleWikilink { mut, test := mutateTestCase( tc, "this is a ", @@ -276,7 +276,7 @@ func Test_ObsidianWikilinks_LinksEndOfInput(t *testing.T) { func Test_ObsidianWikilinks_Basic(t *testing.T) { // t.Parallel() - for _, tc := range testCases { + for _, tc := range SingleWikilink { mut, test := mutateTestCase( tc, "",