Skip to content

Commit

Permalink
Remove redundant strconv in diacritics test (#1917)
Browse files Browse the repository at this point in the history
  • Loading branch information
Limero authored Feb 14, 2025
1 parent 74b2954 commit c42942d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions diacritics_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"strconv"
"testing"
)

Expand Down Expand Up @@ -63,10 +62,10 @@ func runSearch(t *testing.T, ignorecase, smartcase, ignorediacritics, smartdiacr
gOpts.smartdia = smartdiacritics
matched, _ := searchMatch(base, pattern, false)
if matched != expected {
t.Errorf("False search for ignorecase = %s, smartcase = %s, ignoredia = %s, smartdia = %s",
strconv.FormatBool(gOpts.ignorecase),
strconv.FormatBool(gOpts.smartcase),
strconv.FormatBool(gOpts.ignoredia),
strconv.FormatBool(gOpts.smartdia))
t.Errorf("False search for ignorecase = %t, smartcase = %t, ignoredia = %t, smartdia = %t",
gOpts.ignorecase,
gOpts.smartcase,
gOpts.ignoredia,
gOpts.smartdia)
}
}

0 comments on commit c42942d

Please sign in to comment.