Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions qrcode_decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TestDecodeAllCharacters(t *testing.T) {

// zbarimg has trouble with null bytes, hence start from ASCII 1.
for i := 1; i < 256; i++ {
content += string(i)
content += string(rune(i))
}

q, err := New(content, Low)
Expand Down Expand Up @@ -154,7 +154,7 @@ func TestDecodeFuzz(t *testing.T) {
for j := 0; j < len; j++ {
// zbarimg seems to have trouble with special characters, test printable
// characters only for now.
content += string(32 + r.Intn(94))
content += string(rune(32 + r.Intn(94)))
}

for _, level := range []RecoveryLevel{Low, Medium, High, Highest} {
Expand Down