From 8b4ba717e296b656276b11ad7aaf077db5bb47a9 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Tue, 4 Jul 2023 11:40:42 -0400 Subject: [PATCH] Renaming in preparation for more tests --- lexer_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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, "",