[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/inspector d60552c6d2 76/93: Some more tests
From: |
ELPA Syncer |
Subject: |
[elpa] externals/inspector d60552c6d2 76/93: Some more tests |
Date: |
Tue, 24 May 2022 18:58:01 -0400 (EDT) |
branch: externals/inspector
commit d60552c6d2a142d8cb9dc314c3cff6c868001199
Author: Mariano Montone <marianomontone@gmail.com>
Commit: Mariano Montone <marianomontone@gmail.com>
Some more tests
---
inspector-tests.el | 37 ++++++++++++++++++++++++++++++-------
1 file changed, 30 insertions(+), 7 deletions(-)
diff --git a/inspector-tests.el b/inspector-tests.el
index a0ded5f8f8..5c0981987f 100644
--- a/inspector-tests.el
+++ b/inspector-tests.el
@@ -102,21 +102,44 @@
(inspector-inspect (record 'foo 23 [bar baz] "rats"))
-(inspector-inspect (make-finalizer #'print))
+(ert-deftest inspector-tests--inspect-finalizer-test ()
+ (inspector-inspect (make-finalizer #'print)))
-(inspector-inspect (make-button 0 10))
-(inspector-inspect (make-overlay 0 10))
+(ert-deftest inspector-tests--overlays-test ()
+ (inspector-inspect (make-button 0 10))
+ (let ((buffer-string (buffer-string)))
+ (should (search "overlay" buffer-string)))
+ (inspector-quit)
+ (inspector-inspect (make-overlay 0 10))
+ (let ((buffer-string (buffer-string)))
+ (should (search "overlay" buffer-string)))
+ (inspector-quit))
-(defclass person ()
+(defclass inspector-tests--person ()
((name :initform "John")
(age :initform 40)))
-(inspector-inspect (make-instance 'person))
+(ert-deftest inspector-tests--inspect-class-test ()
+ (inspector-inspect (make-instance 'inspector-tests--person))
+ (let ((buffer-string (buffer-string)))
+ (should (search "name" buffer-string))
+ (should (search "John" buffer-string))
+ (should (search "age" buffer-string))
+ (should (search "40" buffer-string))
+ (inspector-quit)))
+
-(cl-defstruct rectangle
+(cl-defstruct inspector-tests--rectangle
x y)
-(inspector-inspect (make-rectangle :x 30 :y 40))
+(ert-deftest inspector-tests--inspect-struct-test ()
+ (inspector-inspect (make-inspector-tests--rectangle :x 30 :y 40))
+ (let ((buffer-string (buffer-string)))
+ (should (search "x" buffer-string))
+ (should (search "y" buffer-string))
+ (should (search "30" buffer-string))
+ (should (search "40" buffer-string))
+ (inspector-quit)))
(setq inspector-slice-size 10)
(inspector-inspect (cl-loop for i from 1 to 101 collect i))
- [elpa] externals/inspector 57b46a3079 38/93: Bug fix, (continued)
- [elpa] externals/inspector 57b46a3079 38/93: Bug fix, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 22869bffb4 47/93: Indentation, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector f534e87d1d 54/93: Slice tests, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 5f7ab9bfb7 06/93: Housekeeping, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 7574ca3ff9 51/93: Slice sequences, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 610d67b358 59/93: Test on property lists, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 970fa60851 68/93: Better horizontal line for title underline, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 17f6d1dfaf 71/93: Aesthetic adjustments, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector 0dc8dd946b 77/93: Render built-in functions, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector ee6d2ea01b 80/93: More tests, ELPA Syncer, 2022/05/24
- [elpa] externals/inspector d60552c6d2 76/93: Some more tests,
ELPA Syncer <=
- [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, 2022/05/24