Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit bfd8c9b

Browse files
committed
test: cosmetic - consistent string literal syntax
Signed-off-by: Alexander Bezzubov <[email protected]>
1 parent 9085dab commit bfd8c9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

driver/normalizer/strconv_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ var testCasesUnquote = []struct {
1616
// Golang unquote() defaults to hex format, so it's used as canonical one.
1717
canonicalQuoted string
1818
}{
19-
{"'a'", "a", ""},
20-
{"'\\x00'", "\u0000", ""},
19+
{`'a'`, "a", ""},
20+
{`'\x00'`, "\u0000", ""},
2121
{`'\0'`, "\u0000", "'\\x00'"},
2222
{`'\0something\0'`, "\u0000something\u0000", "'\\x00something\\x00'"},
2323
{`'\0something\0else'`, "\u0000something\u0000else", "'\\x00something\\x00else'"},
24-
{"'\u0000123\\0s'", "\u0000123\u0000s", "'\\x00123\\x00s'"},
24+
{`'\u0000123\0s'`, "\u0000123\u0000s", "'\\x00123\\x00s'"},
2525
}
2626

2727
func TestUnquoteSingle(t *testing.T) {
@@ -68,7 +68,7 @@ func printDebug(t *testing.T, quoted, actual string) {
6868
}
6969
}
7070

71-
func BenchmarkReplacingNullEscape_Simple(b *testing.B) {
71+
func BenchmarkReplacingNullEscape(b *testing.B) {
7272
b.ReportAllocs()
7373
for _, test := range testCasesUnquote {
7474
for n := 0; n < b.N; n++ {

0 commit comments

Comments
 (0)