unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Olivier Dion <olivier.dion@polymtl.ca>
To: guile-user@gnu.org
Cc: rekado@elephly.net, Olivier dion <olivier-dion@proton.me>
Subject: [RFC PATCH 2/2] Add tests for strings interpolation reader extension.
Date: Sat, 10 Dec 2022 17:17:24 -0500	[thread overview]
Message-ID: <20221210221724.23998-3-olivier.dion@polymtl.ca> (raw)
In-Reply-To: <20221210221724.23998-1-olivier.dion@polymtl.ca>

From: Olivier dion <olivier-dion@proton.me>

* test-suite/tests/reader.test: Add the tests.
---
 test-suite/tests/reader.test | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/test-suite/tests/reader.test b/test-suite/tests/reader.test
index 27daf6106..fb31575dd 100644
--- a/test-suite/tests/reader.test
+++ b/test-suite/tests/reader.test
@@ -200,7 +200,16 @@
   (pass-if-equal '(#f) (read-string "(#FALSE)"))
   (pass-if-equal '(#f) (read-string "(#FaLsE)"))
 
-  (pass-if (eof-object? (read-string "#!!#"))))
+  (pass-if (eof-object? (read-string "#!!#")))
+
+  (pass-if-equal "raw" (read-string "#\"raw\""))
+  (pass-if-equal "@raw" (read-string "#\"@@raw\""))
+  (pass-if-equal "@raw" (read-string "#\"@@raw@\""))
+  (pass-if-equal "@raw@" (read-string "#\"@@raw@@\""))
+  (pass-if-equal '(format #f "true=~a" (or #f #t))
+      (read-string "#\"true=@(or #f #t)\""))
+  (pass-if-equal '(format #f "@@~a" '@)
+      (read-string "#\"@@@@@'@\"")))
 
 
 \f
-- 
2.38.1




      parent reply	other threads:[~2022-12-10 22:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-10 22:17 [RFC PATCH 0/2] Strings interpolation Olivier Dion
2022-12-10 22:17 ` [RFC PATCH 1/2] Add reader extension for interpolated strings Olivier Dion
2022-12-10 22:17 ` Olivier Dion [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221210221724.23998-3-olivier.dion@polymtl.ca \
    --to=olivier.dion@polymtl.ca \
    --cc=guile-user@gnu.org \
    --cc=olivier-dion@proton.me \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).