summaryrefslogtreecommitdiffstats
path: root/modules/charset/charset_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/charset/charset_test.go')
-rw-r--r--modules/charset/charset_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/charset/charset_test.go b/modules/charset/charset_test.go
index cfd5fb5696..6dd13c039d 100644
--- a/modules/charset/charset_test.go
+++ b/modules/charset/charset_test.go
@@ -296,11 +296,11 @@ func TestDetectEncoding(t *testing.T) {
}
func stringMustStartWith(t *testing.T, expected, value string) {
- assert.Equal(t, expected, string(value[:len(expected)]))
+ assert.Equal(t, expected, value[:len(expected)])
}
func stringMustEndWith(t *testing.T, expected, value string) {
- assert.Equal(t, expected, string(value[len(value)-len(expected):]))
+ assert.Equal(t, expected, value[len(value)-len(expected):])
}
func bytesMustStartWith(t *testing.T, expected, value []byte) {