mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 21:40:33 +02:00
(delete, delete!): Test predicate call arg order.
This commit is contained in:
parent
a658e41bee
commit
8ec84fe54e
1 changed files with 16 additions and 0 deletions
|
@ -21,6 +21,22 @@
|
|||
(test-suite lib))
|
||||
|
||||
|
||||
;;
|
||||
;; delete and delete!
|
||||
;;
|
||||
|
||||
(let ()
|
||||
(define (common-tests delete-proc)
|
||||
(pass-if "called arg order"
|
||||
(equal? '(1 2 3)
|
||||
(delete-proc 3 '(1 2 3 4 5) <))))
|
||||
|
||||
(with-test-prefix "delete"
|
||||
(common-tests delete))
|
||||
|
||||
(with-test-prefix "delete!"
|
||||
(common-tests delete!)))
|
||||
|
||||
;;
|
||||
;; drop
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue