Renaming in preparation for more tests

main
Nick Dumas 1 year ago
parent 3f3696eb9f
commit 8b4ba717e2

@ -8,7 +8,7 @@ import (
"code.ndumas.com/ndumas/wikilink-parser" "code.ndumas.com/ndumas/wikilink-parser"
) )
var testCases = []tc{ var SingleWikilink = []tc{
{ {
name: "wikilink", name: "wikilink",
in: "[[wikilink]]", in: "[[wikilink]]",
@ -197,7 +197,7 @@ var testCases = []tc{
} }
func Test_ObsidianWikilinks_LinksEndOfMultiLineInput(t *testing.T) { func Test_ObsidianWikilinks_LinksEndOfMultiLineInput(t *testing.T) {
for _, tc := range testCases { for _, tc := range SingleWikilink {
mut, test := mutateTestCase( mut, test := mutateTestCase(
tc, tc,
" test data please ignore.\nbling blonk more lines\nbling blong\nthis is a", " 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) { func Test_ObsidianWikilinks_LinksStartOfMultiLineInput(t *testing.T) {
for _, tc := range testCases { for _, tc := range SingleWikilink {
mut, test := mutateTestCase( mut, test := mutateTestCase(
tc, tc,
"", "",
@ -239,7 +239,7 @@ func Test_ObsidianWikilinks_LinksStartOfMultiLineInput(t *testing.T) {
} }
func Test_ObsidianWikilinks_LinksStartOfInput(t *testing.T) { func Test_ObsidianWikilinks_LinksStartOfInput(t *testing.T) {
for _, tc := range testCases { for _, tc := range SingleWikilink {
mut, test := mutateTestCase( mut, test := mutateTestCase(
tc, tc,
"", "",
@ -257,7 +257,7 @@ func Test_ObsidianWikilinks_LinksStartOfInput(t *testing.T) {
} }
func Test_ObsidianWikilinks_LinksEndOfInput(t *testing.T) { func Test_ObsidianWikilinks_LinksEndOfInput(t *testing.T) {
for _, tc := range testCases { for _, tc := range SingleWikilink {
mut, test := mutateTestCase( mut, test := mutateTestCase(
tc, tc,
"this is a ", "this is a ",
@ -276,7 +276,7 @@ func Test_ObsidianWikilinks_LinksEndOfInput(t *testing.T) {
func Test_ObsidianWikilinks_Basic(t *testing.T) { func Test_ObsidianWikilinks_Basic(t *testing.T) {
// t.Parallel() // t.Parallel()
for _, tc := range testCases { for _, tc := range SingleWikilink {
mut, test := mutateTestCase( mut, test := mutateTestCase(
tc, tc,
"", "",

Loading…
Cancel
Save