diff options
| author | Hubert Pelczarski <41551030+hoob3rt@users.noreply.github.com> | 2021-02-24 03:35:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-24 03:35:52 +0100 |
| commit | 67b06615371465b53a82c39c603c3249286b5b2a (patch) | |
| tree | 73c93ec151b303c1b892277aa082eda2502e062d /lua/tests | |
| parent | 10627e889e82a82560b6fc48ea0ca20e1963d07f (diff) | |
feat: adds M mapping in normal mode (#544)
Diffstat (limited to 'lua/tests')
| -rw-r--r-- | lua/tests/automated/scroller_spec.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lua/tests/automated/scroller_spec.lua b/lua/tests/automated/scroller_spec.lua index 98233b4..bd202e8 100644 --- a/lua/tests/automated/scroller_spec.lua +++ b/lua/tests/automated/scroller_spec.lua @@ -112,7 +112,14 @@ describe('scroller', function() end) end) - describe('should give top and bottom index', function() + + describe('should give top, middle and bottom index', function() + it('should handle middle index', function() + eq(5, p_scroller.middle(nil, 11, nil)) + eq(10, p_scroller.middle(nil, 20, nil)) + eq(12, p_scroller.middle(nil, 25, nil)) + end) + it('should handle ascending', function() eq(0, p_scroller.top('ascending', 20, 1000)) eq(19, p_scroller.bottom('ascending', 20, 1000)) |
