From 5164c4d378ed8bb9a6335dd6c177be7027140014 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 2 Feb 2014 23:59:45 -0500 Subject: Add function to create combined BibTeX file --- bog-tests.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bog-tests.el') diff --git a/bog-tests.el b/bog-tests.el index 24b5d0d..5b0cd79 100644 --- a/bog-tests.el +++ b/bog-tests.el @@ -157,3 +157,17 @@ (should new-buffer) (kill-buffer new-buffer) (delete-file new-file)))) + +;; `bog-collect-references' + +(ert-deftest bog-collect-references () + (with-temp-buffer + (insert "abc1900word\nhij2000word\nefg1800word\n") + (should (equal (bog-collect-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"))))) -- cgit v1.2.3