-
Notifications
You must be signed in to change notification settings - Fork 0
/
boon-test.el
69 lines (53 loc) · 1.56 KB
/
boon-test.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
;;; boon-test.el --- An Ergonomic Command Mode -*- lexical-binding: t -*-
;;; Commentary:
;; This module tests boon.
;;; Code:
(package-initialize)
(setq package-archives '(("melpa-stable" . "http://stable.melpa.org/packages/")))
(package-refresh-contents)
(dolist (pkg '(multiple-cursors
dash
expand-region
powerline ;; only for boon-powerline
spaceline ;; only for boon-spaceline
))
(package-install pkg)
(package-activate pkg))
(add-to-list 'load-path default-directory)
(require 'boon)
(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))))))
;; Untested:
;; "boon-core.el"
(require 'dash)
(setq byte-compile-error-on-warn t)
(unless
(-all? #'byte-compile-file
'("boon.el"
"boon-arguments.el"
"boon-colemak.el"
"boon-core.el"
"boon-emacs.el"
"boon-keys.el"
"boon-main.el"
"boon-moves.el"
"boon-pkg.el"
"boon-powerline.el"
"boon-qwerty.el"
"boon-qwertz.el"
"boon-regs.el"
"boon-search.el"
"boon-spaceline.el"
"boon-test.el"
"boon-tutorial.el"
"boon-utils.el"
"boon-workman.el"))
(kill-emacs 1))
(ert-run-tests-batch-and-exit)
;;; boon-test.el ends here