aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/unit/module-introspection/module-introspection.scm19
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))