From 7133530a285cf1990b9dd7a1477887a5b8e68b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 28 Oct 2023 23:47:56 +0200 Subject: Add tests for base module-introspection module. --- .../module-introspection/module-introspection.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/unit/module-introspection/module-introspection.scm diff --git a/tests/unit/module-introspection/module-introspection.scm b/tests/unit/module-introspection/module-introspection.scm new file mode 100644 index 00000000..48e1fbac --- /dev/null +++ b/tests/unit/module-introspection/module-introspection.scm @@ -0,0 +1,19 @@ +(define-module (test module-introspection) + :use-module (srfi srfi-64) + :use-module (srfi srfi-88) + ;; :use-module ((hnh util) :select (->)) + :use-module (hnh module-introspection)) + +(test-equal "Unique Symbols" + '(* +) + (unique-symbols '(+ (* 2 (+ 3 4)) + 5))) + +(test-equal + '(my module) + (find-module-declaration + '((define-module (my module) + :export (nothing)) + (define nothing '())))) + +'((hnh module-introspection)) -- cgit v1.2.3