[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 715d813c83 062/153: Clean up tests.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 715d813c83 062/153: Clean up tests. |
Date: |
Sat, 29 Jan 2022 08:02:16 -0500 (EST) |
branch: elpa/forth-mode
commit 715d813c83b1fb55d9b98ae148ffe29b2f08cdd9
Author: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Commit: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Clean up tests.
---
build.el | 2 +-
test/tests.el | 18 ++++++------------
2 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/build.el b/build.el
index 6172088e19..68e3037c23 100644
--- a/build.el
+++ b/build.el
@@ -9,7 +9,7 @@
(require 'ert)
(defmacro ert-deftest (name args &rest body)
`(progn ,@body))
- (defun ert-run-tests-batch-and-exit ()
+ (defun ert-run-tests-batch-and-exit (&optional x)
(kill-emacs 0))
(defun should (arg))
(defun should-not (arg)))
diff --git a/test/tests.el b/test/tests.el
index 840230d608..6ceceaf1ea 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -1,23 +1,17 @@
-(ert-deftest load-forth-mode ()
- "Load forth-mode."
- (should (require 'forth-mode))
- (should (featurep 'forth-mode))
- (with-temp-buffer
- (forth-mode)
- (should (eq major-mode 'forth-mode))
- (kill-buffer)))
-
(ert-deftest load-not-block ()
(find-file "test/noblock.fth")
(should (eq major-mode 'forth-mode))
- (should-not (and (boundp 'forth-block-mode) forth-block-mode)))
+ (should-not (and (boundp 'forth-block-mode) forth-block-mode))
+ (kill-buffer))
(ert-deftest load-block-with-newlines ()
(find-file "test/block2.fth")
(should (eq major-mode 'forth-mode))
- (should (and (boundp 'forth-block-mode) forth-block-mode)))
+ (should (and (boundp 'forth-block-mode) forth-block-mode))
+ (kill-buffer))
(ert-deftest load-block-without-newlines ()
(find-file "test/block1.fth")
(should (eq major-mode 'forth-mode))
- (should (and (boundp 'forth-block-mode) forth-block-mode)))
+ (should (and (boundp 'forth-block-mode) forth-block-mode))
+ (kill-buffer))
- [nongnu] elpa/forth-mode c64035c209 073/153: Add backends for Forth implementations., (continued)
- [nongnu] elpa/forth-mode c64035c209 073/153: Add backends for Forth implementations., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode d1498037a2 107/153: Add simple tests for forward-sexp, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 83a62c82c4 030/153: Move all package metadata to forth-mode.el., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 186bae4853 083/153: Fix set-process-window-size parameter order., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 48bcf41d63 058/153: Cache words from interactive Forth., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode f418b9aac2 087/153: Set process coding system for SwiftForth., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode f3d76c12c1 125/153: Test completion-at-point, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 4dc1ff0f3b 086/153: Include backend files in make dependencies., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 2779ca61ab 075/153: Improve building of backend files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 71016700dc 095/153: Emacs 23: use cl library instead of cl-lib., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 715d813c83 062/153: Clean up tests.,
ELPA Syncer <=
- [nongnu] elpa/forth-mode e35317f2f7 093/153: Improve syntax-propertize function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 76e3885c0b 150/153: Remove obsolete Wercker CI build., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 443193e02f 071/153: Auto-detect Forth implementation., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode a7a5d4ba05 137/153: Use defcustom to define forth-smie-basic-indent, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 522256d98d 145/153: Adding support for ?of, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 08d891c907 026/153: Use LOCAL argument to add-hook., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 82f746ba54 049/153: Use ERT for some light testing as part of build., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode ad5ce072ca 006/153: GPL3, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6f18e1c20e 011/153: Tweak syntax table., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6efdba0686 029/153: Remove dependency from forth-mode to forth-block-mode., ELPA Syncer, 2022/01/29