From: Michael Heerdegen <michael_heerdegen@web.de>
To: Damien Cassou <damien@cassou.me>
Cc: Nicolas Petton <nicolas@petton.fr>, 38375@debbugs.gnu.org
Subject: bug#38375: 26.3.50; map-contains-key can't detect nil
Date: Tue, 26 Nov 2019 00:34:27 +0100 [thread overview]
Message-ID: <878so35y4c.fsf@web.de> (raw)
In-Reply-To: <874kyr3mix.fsf@cassou.me> (Damien Cassou's message of "Mon, 25 Nov 2019 18:15:34 +0100")
Damien Cassou <damien@cassou.me> writes:
> The code below inserts the pair (nil, 'value) in a hash table. I expect
> `map-contains-key' to return t when passed the key nil as argument.
>
> (ert-deftest test-map-contains-key-with-nil-has-key-in-hashtable ()
> (let ((map (make-hash-table :test 'equal)))
> (puthash nil 'value map)
> (should (map-contains-key map nil))))
This should have been fixed in master with commit 1691a5109
"*lisp/emacs-lisp/map.el: Make the functions generic". Could you please
check?
Michael.
next prev parent reply other threads:[~2019-11-25 23:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-25 17:15 bug#38375: 26.3.50; map-contains-key can't detect nil Damien Cassou
2019-11-25 23:22 ` Juanma Barranquero
2019-11-25 23:34 ` Michael Heerdegen [this message]
2019-11-26 15:12 ` Damien Cassou
2019-11-26 15:44 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878so35y4c.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=38375@debbugs.gnu.org \
--cc=damien@cassou.me \
--cc=nicolas@petton.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).