File: fix-non-constant-format-string

package info (click to toggle)
lf 34%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,296 kB
  • sloc: sh: 126; makefile: 23; csh: 4
file content (34 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download
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)
 	}
 }