1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-28 14:00:31 +02:00
Conflicts:
	module/ice-9/psyntax-pp.scm
	module/language/tree-il/peval.scm
This commit is contained in:
Andy Wingo 2012-01-10 00:21:48 +01:00
commit bbc2364a3e
8 changed files with 11426 additions and 11303 deletions

View file

@ -169,6 +169,18 @@
(with-test-prefix "scandir"
(pass-if "top-srcdir"
(let ((valid? (negate (cut string-any #\/ <>))))
(match (scandir %top-srcdir)
(((? valid? files) ...)
;; Both subdirs and files must be included.
(let ((expected '("libguile" "README" "COPYING"
"test-suite" "Makefile.am"
"." "..")))
(lset= string=?
(lset-intersection string=? files expected)
expected))))))
(pass-if "test-suite"
(let ((select? (cut string-suffix? ".test" <>)))
(match (scandir (string-append %test-dir "/tests") select?)

View file

@ -150,9 +150,10 @@
(pass-if "legal (begin)"
(eval '(begin (begin) #t) (interaction-environment)))
(pass-if-syntax-error "illegal (begin)"
exception:generic-syncase-error
(eval '(begin (if #t (begin)) #t) (interaction-environment))))
(if (not (include-deprecated-features))
(pass-if-syntax-error "illegal (begin)"
exception:generic-syncase-error
(eval '(begin (if #t (begin)) #t) (interaction-environment)))))
(define-syntax matches?
(syntax-rules (<>)

View file

@ -1425,6 +1425,11 @@
(((x) #f #f #f () (_))
(call (toplevel top) (lexical x _)))))))
(pass-if-peval
;; Constant folding: cons of #nil does not make list
(cons 1 #nil)
(primcall cons (const 1) (const '#nil)))
(pass-if-peval
;; Constant folding: cons
(begin (cons 1 2) #f)