summaryrefslogtreecommitdiff
path: root/bog-tests.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-02-02 23:59:45 -0500
committerKyle Meyer <kyle@kyleam.com>2014-02-03 00:50:18 -0500
commit5164c4d378ed8bb9a6335dd6c177be7027140014 (patch)
tree50737e5ce5987d6e1bb9867405aec539f2d79597 /bog-tests.el
parentf8725fe18333d96b23e7f1473de991114f8f181a (diff)
downloadbog-5164c4d378ed8bb9a6335dd6c177be7027140014.tar.gz
Add function to create combined BibTeX file
Diffstat (limited to 'bog-tests.el')
-rw-r--r--bog-tests.el14
1 files changed, 14 insertions, 0 deletions
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")))))