aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2025-02-21 13:57:45 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2025-02-21 14:11:08 +0000
commit253807763840392a55f16c2c0aa9f161a4748d02 (patch)
tree5096395fc7abb8656fd52856f833e1d89c0d7837 /tests
parent0f8b5185fd3f3d0fa7d630a0da95b8b6ecb37435 (diff)
downloadcantedraw-253807763840392a55f16c2c0aa9f161a4748d02.tar.gz
cantedraw-253807763840392a55f16c2c0aa9f161a4748d02.tar.bz2
cantedraw-253807763840392a55f16c2c0aa9f161a4748d02.zip
Setup an empty unit test suite for lib.functions
I've added a dependency so if lib.macros isn't working, we can skip all the tests in lib.functions. Therefore we can use lib.macros in the test code.
Diffstat (limited to 'tests')
-rw-r--r--tests/functions.lisp24
-rw-r--r--tests/main.lisp3
2 files changed, 26 insertions, 1 deletions
diff --git a/tests/functions.lisp b/tests/functions.lisp
new file mode 100644
index 0000000..5d4d05a
--- /dev/null
+++ b/tests/functions.lisp
@@ -0,0 +1,24 @@
+;;; functions.lisp - 2025-02-20
+
+;; Copyright (C) 2025 Aryadev Chavali
+
+;; This program is distributed in the hope that it will be useful, but WITHOUT
+;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+;; FOR A PARTICULAR PURPOSE. See the GNU General Public License Version 2 for
+;; details.
+
+;; You may distribute and modify this code under the terms of the GNU General
+;; Public License Version 2, which you should have received a copy of along with
+;; this program. If not, please go to <https://www.gnu.org/licenses/>.
+
+;;; Code:
+
+(defpackage cantedraw/tests/functions
+ (:use
+ :cl :parachute :cantedraw.lib.macros
+ :cantedraw.lib.functions))
+
+(in-package :cantedraw/tests/functions)
+
+(define-test function-test
+ :depends-on ((cantedraw/tests/macros macro-test)))
diff --git a/tests/main.lisp b/tests/main.lisp
index 0e8e462..e78d0d7 100644
--- a/tests/main.lisp
+++ b/tests/main.lisp
@@ -21,4 +21,5 @@
(define-test all
:serial t
- :depends-on ((cantedraw/tests/macros macro-test)))
+ :depends-on ((cantedraw/tests/macros macro-test)
+ (cantedraw/tests/functions function-test)))