Remove redundant strconv in diacritics test (#1917)
This commit is contained in:
1 parent
74b2954e6a
commit
c42942d53e
1 file changed
+5
-6
+5
-6
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user