[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 4c998b4: Add unit test for Bug#30005.
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] master 4c998b4: Add unit test for Bug#30005. |
Date: |
Tue, 23 Jan 2018 17:41:26 -0500 (EST) |
branch: master
commit 4c998b4e4f5f468264d3ea0bee5da586f32938e1
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
Add unit test for Bug#30005.
* test/src/callint-tests.el (call-interactively/embedded-nulls): New
unit test.
---
test/src/callint-tests.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/src/callint-tests.el b/test/src/callint-tests.el
index 8fc7edf..9a81222 100644
--- a/test/src/callint-tests.el
+++ b/test/src/callint-tests.el
@@ -35,4 +35,12 @@
(cdr data)
'("Invalid control letter `\u00FF' (#o377, #x00ff) in interactive
calling string")))))
+(ert-deftest call-interactively/embedded-nulls ()
+ "Check that Bug#30005 is fixed."
+ (should (equal (let ((unread-command-events '(?a ?b)))
+ (call-interactively (lambda (a b)
+ (interactive "ka\0a: \nkb: ")
+ (list a b))))
+ '("a" "b"))))
+
;;; callint-tests.el ends here
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 4c998b4: Add unit test for Bug#30005.,
Philipp Stephani <=