commit a16199dcf9b4688839eba00f1e356d9beac46cfe parent 4fb429ca25504f4bd8cada45c8a0632bbad09e00 Author: Iqbal Ansari <iqbalansari02@yahoo.com> Date: Thu, 13 Jun 2019 12:46:48 +0530 Add test for failure to properly extract text for composition (see #54) Diffstat:
M | test/emojify-test.el | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/test/emojify-test.el b/test/emojify-test.el @@ -491,6 +491,15 @@ (delete-selection-pre-hook)) (should (equal (point-min) (point-max)))))) +(ert-deftest emojify-test-composition () + :tags '(composition) + (emojify-tests-with-emojified-static-buffer "a == b" + (setq emojify-composed-text-p t) + (compose-region 1 2 (concat " " (list #Xe154))) + (compose-region 3 5 (concat " " (list #Xe10f))) + (compose-region 6 7 (concat " " (list #Xe155))) + (emojify-string (buffer-string)))) + (ert-deftest emojify-tests-prettify-symbols () :tags '(prettify-symbols) (when (fboundp 'prettify-symbols-mode)