File tree 3 files changed +49
-0
lines changed
3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ -L .
Original file line number Diff line number Diff line change
1
+ ; ;; Test for `resize-window'
2
+
3
+ ; ;; Commentary:
4
+ ; ; These are the tests for `resize-window'
5
+
6
+ ; ;; Code:
7
+
8
+ (ert-deftest resize-window-should-not-pass ()
9
+ (should-not nil ))
10
+
Original file line number Diff line number Diff line change
1
+ ; ;; test-helper --- Test helper for resize-window
2
+
3
+ ; ;; Commentary:
4
+ ; ; test helper inspired from https://github.com/tonini/overseer.el/blob/master/test/test-helper.el
5
+
6
+ ; ;; Code:
7
+
8
+ (require 'f )
9
+
10
+ (defvar cpt-path
11
+ (f-parent (f-this-file)))
12
+
13
+ (defvar resize-window-test-path
14
+ (f-dirname (f-this-file)))
15
+
16
+ (defvar resize-window-root-path
17
+ (f-parent resize-window-test-path))
18
+
19
+ (defvar resize-window-sandbox-path
20
+ (f-expand " sandbox" resize-window-test-path))
21
+
22
+ (when (f-exists? resize-window-sandbox-path)
23
+ (error " Something is already in %s . Check and destroy it yourself " resize-window-sandbox-path))
24
+
25
+ (defmacro within-sandbox (&rest body )
26
+ " Evaluate BODY in an empty sandbox directory."
27
+ `(let ((default-directory resize-window-sandbox-path))
28
+ (when (f-exists? resize-window-sandbox-path)
29
+ (f-delete default-directory :force ))
30
+ (f-mkdir resize-window-sandbox-path)
31
+ ,@body
32
+ (f-delete default-directory :force )))
33
+
34
+ (require 'ert )
35
+ (require 'resize-window )
36
+
37
+ (provide 'test-helper )
38
+ ; ;; test-helper.el ends here
You can’t perform that action at this time.
0 commit comments