Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit dd1113dd4243d60e18a9a4e1150b19dc5aa92abd 1 parent 5ec29a7
@kaoru6 kaoru6 authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/test.el
View
7 test/test.el
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.