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

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

bug#21633: 25.0.50; assertion failure, self-insert-command with negative


From: Nicolas Richard
Subject: bug#21633: 25.0.50; assertion failure, self-insert-command with negative argument
Date: Tue, 06 Oct 2015 17:48:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:
>> From: Nicolas Richard <youngfrog@members.fsf.org>
>> Date: Tue, 06 Oct 2015 14:26:32 +0200
>> Cc: 21633@debbugs.gnu.org
>> 
>> Thanks for the information and for fixing the bug.
>
> Would you like to write a test for this bug?

I would add

(ert-deftest core-elisp-self-insert-command-with-negative-argument ()
  "Test `self-insert-command' with a negative argument."
  (let ((last-command-event ?a))
    (should-error (self-insert-command -1))))

to test/automated/core-elisp-tests.el.

I didn't find a better place. WDYT ?

-- 
Nico.





reply via email to

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