[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-stklos 330330a 15/30: Add tests on both (STklos and
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-stklos 330330a 15/30: Add tests on both (STklos and Emacs) sides. |
Date: |
Sun, 1 Aug 2021 18:32:42 -0400 (EDT) |
branch: elpa/geiser-stklos
commit 330330afe581d95e9a6fd2eb199bb7ae9ae16392
Author: Jeronimo Pellegrini <j_p@aleph0.info>
Commit: Jeronimo Pellegrini <j_p@aleph0.info>
Add tests on both (STklos and Emacs) sides.
---
Makefile | 11 ++++++++++-
geiser-stklos-test.el | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2c3aad0..ac1bc7d 100644
--- a/Makefile
+++ b/Makefile
@@ -2,5 +2,14 @@ all:
@echo "There is no need to call make ot install Geiser-STklos."
@echo "You can call 'make test' to test it, though."
-test:
+.PHONY: test-stklos
+test-stklos:
stklos --no-init-file --utf8-encoding=yes -f geiser-stklos-test.stk
+
+.PHONY: test-emacs
+test-emacs:
+ @emacs -batch -l ert -l geiser-stklos-test.el -f
ert-run-tests-batch-and-exit 1> test-emacs-stdout.log
+
+test: test-stklos test-emacs
+
+
diff --git a/geiser-stklos-test.el b/geiser-stklos-test.el
new file mode 100644
index 0000000..f18dded
--- /dev/null
+++ b/geiser-stklos-test.el
@@ -0,0 +1,34 @@
+
+(setq load-path (cons "../geiser/elisp" (cons "." load-path)))
+(require 'geiser)
+(load "geiser-stklos.el")
+;(eval-when-compile
+(require 'cl-lib)
+;)
+
+
+(ert-deftest geiser-stklos--loaded ()
+ (should (member 'geiser-stklos features)))
+
+(ert-deftest find-close-par ()
+ 29
+ (with-temp-buffer
+ (insert "(let* ((let 'let) (let* let)) let)")
+ (goto-char 7)
+ (find-close-par)))
+
+(ert-deftest find-close-par-2 ()
+ 18
+ (with-temp-buffer
+ (insert "(let* ((let 'let) (let* let)) let)")
+ (goto-char 10)
+ (find-close-par 8)))
+
+
+;; this one could have many more variants
+(ert-deftest geiser-stklos--symbol-begin ()
+ 5
+ (with-temp-buffer
+ (insert "(abc def (ghijkl))")
+ (goto-char 7)
+ (geiser-stklos--symbol-begin nil)))
- [nongnu] branch elpa/geiser-stklos created (now be482a0), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 95b1dc7 06/30: More updates to README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 3210fd8 20/30: Fix small remaining packaging bugs, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 8700063 25/30: Add LICENSE, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 8166008 27/30: Mention installation from MELPA, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos fb42842 04/30: Updates to README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 5ffe3fd 10/30: eval geiser:... procedures in GEISER module, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos d87d1ac 14/30: Update README.md - autodoc is supported!, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos b806d13 17/30: Merge branch 'master' of gitlab.com:emacs-geiser/stklos, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 330330a 15/30: Add tests on both (STklos and Emacs) sides.,
Philip Kaludercic <=
- [nongnu] elpa/geiser-stklos 66eae79 22/30: Fix docstrings as per checkdoc advice, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 439adec 29/30: Small enhancements to documentation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 5ab06e9 11/30: Add autodoc and symbol documentation support, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 091aa5e 07/30: A very small quantity of tests..., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos ced9c9f 05/30: Fixing a typo in a URL, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 6228b23 21/30: Corectly require Geiser core, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos a02d2a7 13/30: Merge branch 'master' of gitlab.com:emacs-geiser/stklos into master, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos 52acf7c 24/30: Fix fatal thinko (docstring / const value mixup), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos be482a0 30/30: Fix tests and describe them in README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-stklos eb2b13f 02/30: Geiser functions are now in a STklos module, Philip Kaludercic, 2021/08/01