Skip to content

Commit

Permalink
Add UT for position-of-new-score func (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Jan 4, 2016
1 parent d6260cd commit 75f7ddd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/pacmacs-score-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@
(pacmacs--render-score-table input-table)
(should (equal expected-string
(buffer-string))))))

(ert-deftest pacmacs--position-of-new-score-test ()
(let ((score-table '(("hello" . 40)
("world" . 30)
("foo" . 20)
("bar" . 10)))
(new-score 25))
(should (= 2 (pacmacs--position-of-new-score score-table new-score)))))

0 comments on commit 75f7ddd

Please sign in to comment.