emacs-emojify

fork of https://github.com/iqbalansari/emacs-emojify
Log | Files | Refs | LICENSE

commit 8d0775b3ae5d726c9275f94426a4389429063307
parent 0c6328b63c1b0c24120cad7658484ae5980b4ec1
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Sun,  9 Jul 2017 13:56:51 +0530

Add tests for displaying emojis that are part of org-mode list and tags

Diffstat:
Mtest/emojify-test.el | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/test/emojify-test.el b/test/emojify-test.el @@ -388,6 +388,22 @@ ;; (emojify-tests-should-be-emojified (1- (point-max))) ;; (emojify-tests-should-not-be-emojified (1+ (point-min)))) + ;; 8) should not emojified if it is a list item + (emojify-tests-with-emojified-static-buffer "7) *) +8) 8) +9) :/" + (org-mode) + (emojify-redisplay-emojis-in-region) + (emojify-tests-should-not-be-emojified (line-beginning-position 2)) + (emojify-tests-should-be-emojified (1- (line-end-position 2)))) + + ;; Emojis that are part of org-mode tags should not be emojified + (emojify-tests-with-emojified-static-buffer "* Test :p\n* Test2 :p:" + (org-mode) + (emojify-redisplay-emojis-in-region) + (emojify-tests-should-be-emojified (1- (line-end-position))) + (emojify-tests-should-not-be-emojified (- (line-end-position 2) 3))) + (emojify-tests-with-emojified-static-buffer "* Test :books:\n:books:" (org-agenda-mode) (emojify-redisplay-emojis-in-region)