diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-10-28 23:47:56 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-11-06 00:46:26 +0100 |
commit | 7133530a285cf1990b9dd7a1477887a5b8e68b6d (patch) | |
tree | 43a65d06321aac662559057fe27940047d69f00e /tests/unit | |
parent | Minor documentation improvements. (diff) | |
download | calp-7133530a285cf1990b9dd7a1477887a5b8e68b6d.tar.gz calp-7133530a285cf1990b9dd7a1477887a5b8e68b6d.tar.xz |
Add tests for base module-introspection module.
Diffstat (limited to '')
-rw-r--r-- | tests/unit/module-introspection/module-introspection.scm | 19 |
1 files changed, 19 insertions, 0 deletions
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)) |