mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 17:20:29 +02:00
(lset=): Exercise no-arg case.
This commit is contained in:
parent
b73d815e15
commit
fb5f4acc64
1 changed files with 12 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
;;;; srfi-1.test --- Test suite for Guile's SRFI-1 functions. -*- scheme -*-
|
;;;; srfi-1.test --- Test suite for Guile's SRFI-1 functions. -*- scheme -*-
|
||||||
;;;;
|
;;;;
|
||||||
;;;; Copyright 2003, 2004 Free Software Foundation, Inc.
|
;;;; Copyright 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
;;;;
|
;;;;
|
||||||
;;;; This program is free software; you can redistribute it and/or modify
|
;;;; This program is free software; you can redistribute it and/or modify
|
||||||
;;;; it under the terms of the GNU General Public License as published by
|
;;;; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -637,6 +637,17 @@
|
||||||
(pass-if "four improper" (equal? '(1 2 3 . 4) (list-copy '(1 2 3 . 4))))
|
(pass-if "four improper" (equal? '(1 2 3 . 4) (list-copy '(1 2 3 . 4))))
|
||||||
(pass-if "five improper" (equal? '(1 2 3 4 . 5) (list-copy '(1 2 3 4 . 5)))))
|
(pass-if "five improper" (equal? '(1 2 3 4 . 5) (list-copy '(1 2 3 4 . 5)))))
|
||||||
|
|
||||||
|
;;
|
||||||
|
;; lset=
|
||||||
|
;;
|
||||||
|
|
||||||
|
(with-test-prefix "lset="
|
||||||
|
|
||||||
|
;; in guile 1.6.7 and earlier, lset= incorrectly demanded at least one
|
||||||
|
;; list arg
|
||||||
|
(pass-if "no args"
|
||||||
|
(eq? #t (lset= eq?))))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; map
|
;; map
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue