GNU bug report logs -
#13741
guile-2.0: optimize, and eq-ness of literals (test-suite)
Previous Next
Reported by: Daniel Hartwig <mandyke <at> gmail.com>
Date: Mon, 18 Feb 2013 03:29:01 UTC
Severity: normal
Found in version 2.0.7
Done: Andy Wingo <wingo <at> pobox.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 19 February 2013 09:55, Daniel Hartwig <mandyke <at> gmail.com> wrote:
> * test-suite/tests/00-socket.test:
> * test-suite/tests/alist.test:
> * test-suite/tests/elisp.test:
> * test-suite/tests/encoding-iso88591.test:
> * test-suite/tests/encoding-iso88597.test:
> * test-suite/tests/encoding-utf8.test:
> * test-suite/tests/hash.test:
> * test-suite/tests/i18n.test:
> * test-suite/tests/modules.test:
> * test-suite/tests/ports.test:
> * test-suite/tests/srfi-35.test: Make tests use eqv? instead of eq? when
> comparing numbers, characters. Checked also for similar uses of
> assq[-ref].
>
> * test-suite/tests/vlist.test ("vhash-delete honors HASH"): Change test
> to use eqv-ness, not eq-ness, which should not impact its purpose as
> these two are equivalent for strings.
Located using grep and inspecting each occurance of eq?, assq, consq.
The tests weren't necessarily failing, just incorrect for their
reliance on unspecified results. Most checks involving numbers were
already using eqv?, equal?, or =.
The following were spotted but have been left alone for now:
* list.test (diff-unrolled): Uses eq? internally, called on lists
with numbers.
* tree-il.test:
* elisp.test ("assq"): Is that correct for Guile's elisp? _(elisp)
Comparison of Numbers_ says that each integer does have a unique
object in Emacs Lisp, and using ‘eq’ is valid though not
recommended.
Regards
This bug report was last modified 12 years and 86 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.