[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 06/07: Relax srfi-105 source expectations
From: |
Andy Wingo |
Subject: |
[Guile-commits] 06/07: Relax srfi-105 source expectations |
Date: |
Wed, 3 Mar 2021 11:09:29 -0500 (EST) |
wingo pushed a commit to branch master
in repository guile.
commit 118f0c23c4e08e2c34415e61a4e419dfa748d058
Author: Andy Wingo <wingo@pobox.com>
AuthorDate: Wed Mar 3 17:08:12 2021 +0100
Relax srfi-105 source expectations
* test-suite/tests/srfi-105.test ("curly-infix"): For { EXPR }, allow
the source to be at the { rather than at EXPR.
---
test-suite/tests/srfi-105.test | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/test-suite/tests/srfi-105.test b/test-suite/tests/srfi-105.test
index d212bd0..34ea47b 100644
--- a/test-suite/tests/srfi-105.test
+++ b/test-suite/tests/srfi-105.test
@@ -186,13 +186,19 @@
(lambda ()
(read-string " { 1.0 }")))))
(and (equal? (source-property sexp 'line) 0)
- (equal? (source-property sexp 'column) 3))))
+ (case (source-property sexp 'column)
+ ((1) (throw 'unresolved))
+ ((3) #t)
+ (else #f)))))
(pass-if "neoteric expression"
(let ((sexp (with-read-options '(curly-infix positions)
(lambda ()
(read-string " { f(x) }")))))
(and (equal? (source-property sexp 'line) 0)
- (equal? (source-property sexp 'column) 3)))))
+ (case (source-property sexp 'column)
+ ((1) (throw 'unresolved))
+ ((3) #t)
+ (else #f))))))
;; Verify that neoteric expressions are recognized only within curly braces.
(pass-if (equal? '(a(x)(y)) '(a (x) (y))))
- [Guile-commits] branch master updated (54adbd6 -> 8edf1dc), Andy Wingo, 2021/03/03
- [Guile-commits] 02/07: Invalid charset at EOF does not cause decoding error, Andy Wingo, 2021/03/03
- [Guile-commits] 03/07: Fix reader extensions in Scheme reader, Andy Wingo, 2021/03/03
- [Guile-commits] 04/07: Fix reading neoteric exprs in Scheme reader, Andy Wingo, 2021/03/03
- [Guile-commits] 01/07: Remove textual-ports include from (ice-9 read), Andy Wingo, 2021/03/03
- [Guile-commits] 05/07: Fix unterminated #!...!# error message in Scheme reader, Andy Wingo, 2021/03/03
- [Guile-commits] 06/07: Relax srfi-105 source expectations,
Andy Wingo <=
- [Guile-commits] 07/07: Read-in-scheme replaces boot "read" definition, Andy Wingo, 2021/03/03