Skip to content

Commit

Permalink
tests: Fix incorrect boundaries in igist-test.el
Browse files Browse the repository at this point in the history
This commit fixes incorrect boundaries in the `igist-property-boundaries` function in `igist-test.el`. The current implementation was off by one for both start and end positions. This commit corrects the boundaries so that they are accurate.
  • Loading branch information
KarimAziev committed Oct 8, 2023
1 parent f745eb1 commit ab272ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/igist-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,9 @@
(put-text-property 1 7 'igist-tabulated-list-id 1)
(put-text-property 9 15 'igist-tabulated-list-id 2)
(should (equal (igist-property-boundaries 'igist-tabulated-list-id 1)
(cons 1 7)))
(cons 1 6)))
(should (equal (igist-property-boundaries 'igist-tabulated-list-id 9)
(cons 9 15)))
(cons 9 14)))
(should-not (igist-property-boundaries 'igist-tabulated-list-id 7))))

(ert-deftest igist-test-igist-find-entry-bounds ()
Expand Down

0 comments on commit ab272ba

Please sign in to comment.