Permalink
Browse files

Add test for `navi2ch-bm-sort-by-number'.

  • Loading branch information...
1 parent 5ec29a7 commit dd1113dd4243d60e18a9a4e1150b19dc5aa92abd @kaoru6 kaoru6 committed Oct 28, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/test.el
View
@@ -137,6 +137,13 @@
(navi2ch-thumbnail-save-content file file nil)))
(delete-directory workdir t))))
+(ert-deftest bm-sort-by-number ()
+ (should (string=
+ "1\n2\n 12\n1000\n"
+ (with-temp-buffer
+ (insert "1\n1000\n2\n 12\n")
+ (navi2ch-bm-sort-by-number)
+ (buffer-substring-no-properties (point-min) (point-max))))))
;;; run the tests

0 comments on commit dd1113d

Please sign in to comment.