From 4c306516a6719fd32b515c573f9b8f9d04072129 Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Sat, 17 Jan 2026 10:15:11 +0000 Subject: Added some more tests. --- tests/modules/test_dynamic_plugin.zc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/modules/test_dynamic_plugin.zc (limited to 'tests/modules/test_dynamic_plugin.zc') 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"); +} -- cgit v1.2.3