mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-30 17:00:23 +02:00
Remove flawed test that assumed (eq? 1/2 2/4) would return false.
* test-suite/tests/hash.test ("hash-count"): Remove flawed test.
This commit is contained in:
parent
6f160a6e99
commit
90a1623232
1 changed files with 1 additions and 5 deletions
|
@ -148,7 +148,7 @@
|
||||||
(hashq-set! table 1 'foo)
|
(hashq-set! table 1 'foo)
|
||||||
(hashq-ref table 1))))
|
(hashq-ref table 1))))
|
||||||
|
|
||||||
;; 1/2 and 2/4 are equal? and eqv? but not eq?
|
;; 1/2 and 2/4 are equal? and eqv? (but not necessarily eq?)
|
||||||
(pass-if (equal? 'foo
|
(pass-if (equal? 'foo
|
||||||
(let ((table (make-hash-table)))
|
(let ((table (make-hash-table)))
|
||||||
(hash-set! table 1/2 'foo)
|
(hash-set! table 1/2 'foo)
|
||||||
|
@ -157,10 +157,6 @@
|
||||||
(let ((table (make-hash-table)))
|
(let ((table (make-hash-table)))
|
||||||
(hashv-set! table 1/2 'foo)
|
(hashv-set! table 1/2 'foo)
|
||||||
(hashv-ref table 2/4))))
|
(hashv-ref table 2/4))))
|
||||||
(pass-if (equal? #f
|
|
||||||
(let ((table (make-hash-table)))
|
|
||||||
(hashq-set! table 1/2 'foo)
|
|
||||||
(hashq-ref table 2/4))))
|
|
||||||
|
|
||||||
;; (list 1 2) is equal? but not eqv? or eq? to another (list 1 2)
|
;; (list 1 2) is equal? but not eqv? or eq? to another (list 1 2)
|
||||||
(pass-if (equal? 'foo
|
(pass-if (equal? 'foo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue