mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
(hashx-remove!): New tests.
This commit is contained in:
parent
4cff503fc8
commit
87c08ac0f7
1 changed files with 13 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
;;;; hash.test --- test guile hashing -*- scheme -*-
|
||||
;;;;
|
||||
;;;; Copyright (C) 2004 Free Software Foundation, Inc.
|
||||
;;;; Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
;;;;
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -61,3 +61,15 @@
|
|||
(pass-if (= 0 (hashq #t 1)))
|
||||
(pass-if (= 0 (hashq #f 1)))
|
||||
(pass-if (= 0 (hashq noop 1))))
|
||||
|
||||
;;;
|
||||
;;; hashx-remove!
|
||||
;;;
|
||||
|
||||
(with-test-prefix "hashx-remove!"
|
||||
(pass-if (->bool (object-documentation hashx-remove!)))
|
||||
|
||||
(pass-if (let ((table (make-hash-table)))
|
||||
(hashx-set! hashq assq table 'x 123)
|
||||
(hashx-remove! hashq assq table 'x)
|
||||
(null? (hash-map->list noop table)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue