summaryrefslogtreecommitdiff
path: root/tests/modules
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-17 10:15:11 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-17 10:15:11 +0000
commit4c306516a6719fd32b515c573f9b8f9d04072129 (patch)
tree56ed2db9fd8c20ae3ddc2615b1a43ba52f73e712 /tests/modules
parentf026d721ef6e1708b4ec28fdb68179cb7dda75d0 (diff)
Added some more tests.
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/test_dynamic_plugin.zc15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/modules/test_dynamic_plugin.zc b/tests/modules/test_dynamic_plugin.zc
new file mode 100644
index 0000000..f9f6a71
--- /dev/null
+++ b/tests/modules/test_dynamic_plugin.zc
@@ -0,0 +1,15 @@
+
+import plugin "plugins/brainfuck.so" as bf
+import "std/io.zc"
+
+test "dynamic plugin loading" {
+ // Basic Brainfuck: prints 'A' (ASCII 65)
+ // +++++ +++++ [ > +++++ + < - ] > +++++ .
+ // 10 * 6 + 5 = 65
+ bf! {
+ ++++++++++[>++++++<-]>+++++.
+ }
+
+ println "";
+ assert(true, "Plugin loaded and executed");
+}