Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaeguard committed Sep 23, 2023
1 parent 6982621 commit 8333e99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func TestCheck(t *testing.T) {
if err != nil {
t.Errorf(err.Error())
}
if test.expected != result.matches {
if test.expected != result.Matches {
t.Errorf("test %s failed", testName)
}
})
Expand Down Expand Up @@ -177,8 +177,8 @@ func TestFindMatches(t *testing.T) {
}
for i, expected := range test.expected {
for k, v := range expected {
if results[i].groups[k] != v {
t.Fatalf("expected '%s' got: '%s'", v, results[i].groups[k])
if results[i].Groups[k] != v {
t.Fatalf("expected '%s' got: '%s'", v, results[i].Groups[k])
}
}
}
Expand Down Expand Up @@ -238,7 +238,7 @@ func TestCheckForDev(t *testing.T) {
if err != nil {
t.Errorf(err.Error())
}
if test.expected != result.matches {
if test.expected != result.Matches {
_ = fmt.Errorf("test %s failed", testName)
t.Fail()
}
Expand Down

0 comments on commit 8333e99

Please sign in to comment.