From dd203f29a36bf518deacbc03e8562b0195c8345f Mon Sep 17 00:00:00 2001 From: Dominic Martinez Date: Mon, 4 Apr 2022 12:06:03 -0400 Subject: [PATCH] Fix failing qr decode test First convert integers into runes before performing a string conversion. --- qrcode_decode_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrcode_decode_test.go b/qrcode_decode_test.go index 1f4b1d3..2b0756b 100644 --- a/qrcode_decode_test.go +++ b/qrcode_decode_test.go @@ -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) @@ -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} { base-commit: da1b6568686e89143e94f980a98bc2dbd5537f13 -- 2.34.0 /tree/gnu/tests.scm?id=c1f7692fcac793603e0e15c99e8530c015eda302'>treecommitdiff
path: root/gnu/tests.scm
AgeCommit message (Expand)Author
2021-04-12tests: Support package extensions in the backdoor REPL....* gnu/tests.scm (<marionette-configuration>): Add 'extensions' field. (marionette-shepherd-service): Honour the field. (with-import-modules-and-extensions): Define a combination of 'with-import-modules' and 'with-extensions'. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Maxime Devos
2021-02-19tests: Export %simple-os....* gnu/tests.scm (%simple-os): Export it. Mathieu Othacehe
2020-07-25utils: Move <location> and '&error-location' to (guix diagnostics)....* guix/utils.scm (<location>, source-properties->location) (location->source-properties, &error-location): Move to... * guix/diagnostics.scm: ... here. * gnu.scm: Adjust imports accordingly. * gnu/machine.scm: Likewise. * gnu/system.scm: Likewise. * gnu/tests.scm: Likewise. * guix/inferior.scm: Likewise. * tests/channels.scm: Likewise. * tests/packages.scm: Likewise. Ludovic Courtès
2020-03-05tests: Add <system-test> gexp compiler....* gnu/tests.scm (compile-system-test): New gexp compiler. Ludovic Courtès
2020-01-23tests: Fix typo in comment....* gnu/tests.scm: Add missing word in commentary. Ludovic Courtès
2019-12-18gexp: Allow character literals in GEXP->SEXP....Fixes <https://bugs.gnu.org/38628>. * tests/gexp.scm ("lower-gexp, character literal"): New test. * guix/gexp.scm (gexp->sexp)[self-quoting?]: Add CHAR? to the tested types. * guix/repl.scm (self-quoting?): Likewise. * gnu/tests.scm (marionette-shepherd-service)[self-quoting?]: Likewise. Marius Bakke
2019-09-23repl, marionette: 'self-quoting?' matches keywords....* guix/repl.scm (self-quoting?): Add 'keyword?' and 'array?'; remove 'vector?' and 'bytevector?'. * gnu/tests.scm (marionette-shepherd-service) <start>: Likewise. <modules>: Remove (rnrs bytevector). Ludovic Courtès