Skip to content

Commit

Permalink
Add capitalisation tests for ignored names as well
Browse files Browse the repository at this point in the history
  • Loading branch information
eest committed Oct 20, 2024
1 parent 09605cb commit b0eb5c5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkg/runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,11 @@ func TestIgnoredQuestionNamesValid(t *testing.T) {
question: "example.com.",
ignored: true,
},
{
name: "exact match found, case insensitive",
question: "eXample.com.",
ignored: true,
},
{
name: "exact match not found",
question: "www.example.com.",
Expand All @@ -723,11 +728,21 @@ func TestIgnoredQuestionNamesValid(t *testing.T) {
question: "www.example.net.",
ignored: true,
},
{
name: "suffix match",
question: "wWw.example.net.",
ignored: true,
},
{
name: "more nested suffix match",
question: "example.www.example.net.",
ignored: true,
},
{
name: "more nested suffix match, case insensitive",
question: "eXample.www.example.net.",
ignored: true,
},
{
name: "suffix not matched",
question: "example.net.",
Expand Down

0 comments on commit b0eb5c5

Please sign in to comment.