From b9c2f006c8a8a4358ac30fec7c7523da8ff5350f Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 31 Oct 2014 02:08:13 -0400 Subject: Rework citekey collection - Split into two functions instead of having no-sort argument. - Use push instead of add-to-list. --- bog-tests.el | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'bog-tests.el') diff --git a/bog-tests.el b/bog-tests.el index 3bc5781..022275e 100644 --- a/bog-tests.el +++ b/bog-tests.el @@ -274,18 +274,12 @@ ;; `bog-collect-references' -(ert-deftest bog-collect-references () +(ert-deftest bog-collect-unique-references () (with-temp-buffer (insert "abc1900word\nhij2000word\nefg1800word\n") - (should (equal (bog-collect-references) + (should (equal (bog-collect-unique-references) '("abc1900word" "efg1800word" "hij2000word"))))) -(ert-deftest bog-collect-references-no-sort () - (with-temp-buffer - (insert "abc1900word\nhij2000word\nefg1800word\n") - (should (equal (bog-collect-references t) - '("efg1800word" "hij2000word" "abc1900word"))))) - ;; `bog-sort-topic-headings-in-buffer' (ert-deftest bog-sort-topic-headings-in-buffer () -- cgit v1.2.3