emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38375: closed (26.3.50; map-contains-key can't detect nil)


From: GNU bug Tracking System
Subject: bug#38375: closed (26.3.50; map-contains-key can't detect nil)
Date: Tue, 26 Nov 2019 15:45:02 +0000

Your message dated Tue, 26 Nov 2019 16:44:15 +0100
with message-id <address@hidden>
and subject line Re: bug#38375: 26.3.50; map-contains-key can't detect nil
has caused the debbugs.gnu.org bug report #38375,
regarding 26.3.50; map-contains-key can't detect nil
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
38375: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38375
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 26.3.50; map-contains-key can't detect nil Date: Mon, 25 Nov 2019 18:15:34 +0100
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))))

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill



--- End Message ---
--- Begin Message --- Subject: Re: bug#38375: 26.3.50; map-contains-key can't detect nil Date: Tue, 26 Nov 2019 16:44:15 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Damien Cassou <address@hidden> writes:

> I agree, it is fixed in master.

Ok, closing.  Nonetheless, thanks for reporting.

Michael.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]