Permalink
Browse files

add test-case for deleting char at end of overlay with mirror at EOB

  • Loading branch information...
1 parent 9cfd76f commit a5d117a75ad821683475093396e47c83f04d3afa Le Wang committed Oct 6, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 iedit-tests.el
View
@@ -128,6 +128,25 @@ foo"
123foo456123foo456
123foo456")))))
+(ert-deftest iedit-overlay-at-end-of-buffer ()
+ (with-iedit-test-fixture
+ "foo
+foo"
+ (lambda ()
+ (iedit-mode)
+ (highlight-changes-mode 1)
+ (goto-char (point-min))
+ (goto-char (point-at-eol))
+ (iedit-mode)
+ (delete-region (point) (1- (point)))
+ (should (string= (buffer-string)
+ "fo
+fo"))
+ (insert "b")
+ (should (string= (buffer-string)
+ "fob
+fob")))))
+
(ert-deftest iedit-mode-start-from-isearch-test ()
(with-iedit-test-fixture
"foo

0 comments on commit a5d117a

Please sign in to comment.