gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet-scheme] 10/16: tests/form: Use Unicode escapes instead of the un


From: gnunet
Subject: [gnunet-scheme] 10/16: tests/form: Use Unicode escapes instead of the unportable \x....
Date: Mon, 05 Sep 2022 21:34:02 +0200

This is an automated email from the git hooks/post-receive script.

maxime-devos pushed a commit to branch master
in repository gnunet-scheme.

commit 8b76bb3ab0066d06151de584f607173ed9ad4326
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sun Sep 4 15:48:11 2022 +0200

    tests/form: Use Unicode escapes instead of the unportable \x....
    
    \x01 is not supported by Racket.
    
    * tests/form.scm ("%-encoding","%-encoding (NULL)"): Adjust.
---
 tests/form.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/form.scm b/tests/form.scm
index 28f5cc2..85e0b54 100644
--- a/tests/form.scm
+++ b/tests/form.scm
@@ -33,8 +33,8 @@
 (test-decode "two fields" "x=y&z=w" '(("x" . "y") ("z" . "w")))
 (test-decode "spaces" "x+x+x=z+z+z" '(("x x x" . "z z z")))
 (test-decode "forgot to encode spaces" "x x x=z z z" #f)
-(test-decode "%-encoding" "x%01%02=x%03z" '(("x\x01\x02" . "x\x03z")))
-(test-decode "%-encoding (NULL)" "%00x%01%02=x%03z" '(("\x00x\x01\x02" . 
"x\x03z")))
+(test-decode "%-encoding" "x%01%02=x%03z" '(("x\u0001\u0002" . "x\u0003z")))
+(test-decode "%-encoding (NULL)" "%00x%01%02=x%03z" '(("\u0000x\u0001\u0002" . 
"x\u0003z")))
 (test-decode "= in keys and values" "x%3Dz=0%3D1" '(("x=z" . "0=1")))
 
 (test-decode "zero-length values" "x=&y=" '(("x" . "") ("y" . "")))

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]