]> git.eshelyaron.com Git - emacs.git/commit
Tweak the overlay related `insert-before-markers' tests
authorMatt Armstrong <matt@rfc20.org>
Fri, 4 Nov 2022 22:02:17 +0000 (15:02 -0700)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 5 Nov 2022 20:44:06 +0000 (16:44 -0400)
commit2fc6e715a2931523a52d541d5b9868ca6cb144ff
tree17709d98a577ae99b25700538ac8176d9f9233b2
parent4e108213341c99193d73133bb9d2cfbf31e6d8c9
Tweak the overlay related `insert-before-markers' tests

* test/src/buffer-tests.el (test-overlay-insert-before-markers-empty):
Move code down to the other tests related to insertion.  Test all
front/rear insert combinations.  To make the test more clear, at least
to me, hard code all character positions.
(test-overlay-insert-before-markers-at-start): For both front-advance
modes verify that `insert-before-markers' at and overlay's start
advances it.
(test-overlay-insert-before-markers-at-end): For both rear-advance
modes test that `insert-before-markers' at an overlay's end advances
it.
(test-overlay-insert-before-markers-non-empty): Delete, replaced by
the two tests above.
test/src/buffer-tests.el