boon/boon-test.el

65 lines
1.4 KiB
EmacsLisp
Raw Normal View History

2016-11-06 15:27:07 +01:00
;;; boon-test.el --- An Ergonomic Command Mode -*- lexical-binding: t -*-
;;; Commentary:
;; This module tests boon.
;;; Code:
2016-11-04 13:47:40 +01:00
(package-initialize)
2016-11-04 14:42:06 +01:00
(setq package-archives '(("melpa-stable" . "http://stable.melpa.org/packages/")))
(package-refresh-contents)
2016-11-04 13:38:12 +01:00
2016-11-06 16:31:46 +01:00
(dolist (pkg '(multiple-cursors
dash
expand-region
powerline ;; only for boon-powerline
))
(package-install pkg)
(package-activate pkg))
2016-11-04 13:38:12 +01:00
2016-11-04 13:16:09 +01:00
(add-to-list 'load-path default-directory)
2016-11-06 15:27:07 +01:00
(require 'boon)
2016-11-04 13:16:09 +01:00
(ert-deftest boon-open-next-line-and-insert-at-buffer-end ()
(should (string=
"first-line\n\n"
(with-temp-buffer
(insert "first-line")
(goto-char 5)
(boon-open-next-line-and-insert)
(buffer-substring-no-properties 1 (point-max))))))
2016-11-06 16:06:44 +01:00
;; Untested:
;; "boon-core.el"
(require 'dash)
2016-11-16 21:21:11 +01:00
(setq byte-compile-error-on-warn t)
2016-11-06 16:34:58 +01:00
(unless
2016-11-06 16:06:44 +01:00
(-all? #'byte-compile-file
'("boon.el"
"boon-arguments.el"
"boon-colemak.el"
"boon-keys.el"
"boon-main.el"
"boon-moves.el"
"boon-pkg.el"
"boon-powerline.el"
"boon-qwerty.el"
"boon-regs.el"
"boon-search.el"
"boon-test.el"
"boon-tutorial.el"
"boon-utils.el"
"boon-workman.el"))
2016-11-06 16:34:58 +01:00
(kill-emacs 1))
(ert-run-tests-batch-and-exit)
2016-11-06 15:27:07 +01:00
;;; boon-test.el ends here