[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/topspace 27301e8c5a 171/181: Update tests
From: |
ELPA Syncer |
Subject: |
[elpa] externals/topspace 27301e8c5a 171/181: Update tests |
Date: |
Tue, 23 Aug 2022 12:58:48 -0400 (EDT) |
branch: externals/topspace
commit 27301e8c5a617a2259750fe44d543bb4b8c5bd83
Author: Trevor Pogue <poguete@mcmaster.ca>
Commit: Trevor Pogue <poguete@mcmaster.ca>
Update tests
- Expected values in test assertions are hard-coded and currently rely on
the contents of the topspace.el file in some cases.
Since the previous commit altered topspace.el in that specific way, some of
the hard-coded values had to be updated for the tests to pass.
---
test/topspace-test.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/test/topspace-test.el b/test/topspace-test.el
index 853f34dac1..258d3d6cf8 100644
--- a/test/topspace-test.el
+++ b/test/topspace-test.el
@@ -200,10 +200,10 @@ by default"
;; :to-equal
;; (line-number-at-pos (point-max)))))
- (it "can count lines end is larger `window-end'"
+ (it "can count lines"
(set-window-start (selected-window) 300)
(expect (round (topspace--count-lines (window-start)
- (1+ (topspace--window-end))))
+ (topspace--window-end)))
:to-equal (count-screen-lines (window-start)
(topspace--window-end)))
(set-window-start (selected-window) 1))
@@ -211,15 +211,15 @@ by default"
(it "can count lines if start is larger than end"
(set-window-start (selected-window) 300)
(expect (round (topspace--count-lines 401 201))
- :to-equal 4)
+ :to-equal 3)
(expect (round (topspace--count-lines 201 401))
- :to-equal 4)
+ :to-equal 3)
(set-window-start (selected-window) 1))
(it "can count lines if window-absolute-pixel-position returns nil"
(expect (round (round (topspace--count-lines 201 401)))
:to-equal
- 4)))
+ 3)))
(describe
"topspace--correct-height"
- [elpa] externals/topspace 7212517c9b 145/181: Increase test coverage, (continued)
- [elpa] externals/topspace 7212517c9b 145/181: Increase test coverage, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 3531e9f84c 147/181: Update cached coveralls badge in readme, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 3669113748 151/181: Update contributing files, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 897553afd9 155/181: Add `topspace-set-height`, enhance `topspace-center-position` (#19), ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 7e44e30c8a 158/181: Add back coveralls reporting functionality, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 851737dfe3 161/181: Prepare `topspace` for inclusion in GNU ELPA, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace accc2a1ad0 164/181: Update NEWS.md, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace a1719f296b 165/181: Force update of NEWS.md, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace fa2e5713d7 156/181: Update Changelog, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace e046ab3a50 157/181: Internal refactoring and performance optimizations, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 27301e8c5a 171/181: Update tests,
ELPA Syncer <=
- [elpa] externals/topspace a3e7d6ce73 174/181: Update description, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 86efd067c8 175/181: Update description, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace fa67b67e1a 181/181: Update NEWS.md, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace b397dd8a18 177/181: Update description, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 23ad7729db 178/181: Update description, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 565b9a4e71 006/181: - added support for wrapped lines or visual-line-mode, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 770de4987f 009/181: Update README.md, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace f0dbb7b3ca 015/181: Make `M-x checkdoc` happy with docstrings, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace 452e892635 017/181: Make topspace-enable and topspace-disable private functions, ELPA Syncer, 2022/08/23
- [elpa] externals/topspace ece749cd58 018/181: Move topspace-keymap definition to remove warning, ELPA Syncer, 2022/08/23