[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/inspector 094cd26780 78/93: More tests
From: |
ELPA Syncer |
Subject: |
[elpa] externals/inspector 094cd26780 78/93: More tests |
Date: |
Tue, 24 May 2022 18:58:01 -0400 (EDT) |
branch: externals/inspector
commit 094cd267807cd6b028f735f9ef85ba7fbc70f8fd
Author: Mariano Montone <marianomontone@gmail.com>
Commit: Mariano Montone <marianomontone@gmail.com>
More tests
---
inspector-tests.el | 28 +++++++++++++++++++++-------
1 file changed, 21 insertions(+), 7 deletions(-)
diff --git a/inspector-tests.el b/inspector-tests.el
index 5c0981987f..0ff564dd65 100644
--- a/inspector-tests.el
+++ b/inspector-tests.el
@@ -89,18 +89,32 @@
(puthash :b "foo" table)
table))
-(inspector-inspect #'print)
-(inspector-inspect #'(lambda () (print "hello")))
-(inspector-inspect (symbol-function 'car))
+(ert-deftest inspector-tests--inspect-function-test ()
+ (inspector-inspect (symbol-function 'car))
+ (let ((buffer-string (buffer-string)))
+ (should (search "function" buffer-string))
+ (should (search "car" buffer-string)))
+ (inspector-quit))
-(defun factorial (integer)
+(defun inspector-tests--factorial (integer)
"Compute factorial of an integer."
(if (= 1 integer) 1
- (* integer (factorial (1- integer)))))
+ (* integer (inspector-tests--factorial (1- integer)))))
-(inspector-inspect (byte-compile 'factorial))
+(ert-deftest inspector-tests--inspect-compiled-function-test ()
+ (inspector-inspect (byte-compile 'inspector-tests--factorial))
+ (let ((buffer-string (buffer-string)))
+ (should (search "function" buffer-string)))
+ (inspector-quit))
-(inspector-inspect (record 'foo 23 [bar baz] "rats"))
+(ert-deftest inspector-tests--inspect-record-test ()
+ (inspector-inspect (record 'foo 23 [bar baz] "rats"))
+ (let ((buffer-string (buffer-string)))
+ (should (search "record" buffer-string))
+ (should (search "foo" buffer-string))
+ (should (search "23" buffer-string))
+ (should (search "rats" buffer-string)))
+ (inspector-quit))
(ert-deftest inspector-tests--inspect-finalizer-test ()
(inspector-inspect (make-finalizer #'print)))
- [elpa] externals/inspector d60552c6d2 76/93: Some more tests, (continued)
- [elpa] externals/inspector d60552c6d2 76/93: Some more tests, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector ce05c412ba 81/93: More tests, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 40b9031bd8 84/93: Delete .github, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector e1395930a6 86/93: Proper faces for inspector buttons, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 0c92102cfd 87/93: Inherit from fundamental-mode, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 9abd8f6890 91/93: Fix, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector f8affefb73 35/93: Major mode for inspector, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 49c8c75ada 44/93: Fixes to Emacs debug backtrace inspection, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 5b808173cc 52/93: Slice with [more] button, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector bc118aa31a 65/93: Show length of lists, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 094cd26780 78/93: More tests,
ELPA Syncer <=
- [elpa] externals/inspector 902ffcfdfc 79/93: .gitignore, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector e9b4f2e276 85/93: tests: adjustment, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 8a3d1b8627 88/93: Display some more buffer properties, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 20260fc077 15/93: Clean inspector history on exit, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 3e2e8d3476 31/93: Faces, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector b3833deecb 33/93: Better symbol inspector, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 0fa89e3177 41/93: Make customization group for faces, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 143668d367 01/93: First commit, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 8c083d0ae2 45/93: Update README.md, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 182c1de703 46/93: Inspect record types, ELPA Syncer, 2022/05/24