1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Description: Fix non-constant format string
Author: Penn Bauman and David Pedersen
Origin: upstream
Forwarded: not-needed
Applied-Upstream: https://github.com/gokcehan/lf/commit/c42942d53e70cdde64f283723bbf287bdfbf677e
Reviewed-by: Nick Morrott <nickm@debian.org>
Last-Update: 2025-05-04
---
--- a/diacritics_test.go
+++ b/diacritics_test.go
@@ -1,7 +1,6 @@
package main
import (
- "strconv"
"testing"
)
@@ -63,10 +62,10 @@
gOpts.smartdia = smartdiacritics
matched, _ := searchMatch(base, pattern, false)
if matched != expected {
- t.Errorf("False search for" +
- " ignorecase = " + strconv.FormatBool(gOpts.ignorecase) + ", " +
- " smartcase = " + strconv.FormatBool(gOpts.smartcase) + ", " +
- " ignoredia = " + strconv.FormatBool(gOpts.ignoredia) + ", " +
- " smartdia = " + 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)
}
}
|