projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9d87f1
)
remhash tests
author
David Vázquez
<davazp@gmail.com>
Sun, 16 Feb 2014 19:38:07 +0000
(20:38 +0100)
committer
David Vázquez
<davazp@gmail.com>
Sun, 16 Feb 2014 19:38:07 +0000
(20:38 +0100)
tests/hash-tables.lisp
patch
|
blob
|
history
diff --git
a/tests/hash-tables.lisp
b/tests/hash-tables.lisp
index
abbec79
..
3dc7528
100644
(file)
--- a/
tests/hash-tables.lisp
+++ b/
tests/hash-tables.lisp
@@
-13,4
+13,10
@@
(test (equal (gethash "foo" ht) 10)))
+(let ((ht (make-hash-table :test #'equal)))
+ (setf (gethash "foo" ht) 10)
+ (test (eq (remhash "foo" ht) t))
+ (test (eq (remhash "foo" ht) nil))
+ (test (null (gethash "foo" ht))))
+