From a26fa66a9abd8fc74cafc72d82a8e520335baef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Tue, 27 Aug 2024 18:32:30 +0200 Subject: [PATCH] added unit-testing suite --- tests/tests.art | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/tests.art diff --git a/tests/tests.art b/tests/tests.art new file mode 100644 index 0000000..f0d433a --- /dev/null +++ b/tests/tests.art @@ -0,0 +1,19 @@ +import {unitt}! + +loop list ./"../src/plugins" 'location [ + name: extract.filename location + plugin: # location + + run: [do [plugin\action v]] + + suite capitalize name [ + test "valid" [ + assert -> + every? plugin\test\valid 'v run + ] + test "invalid" [ + assert -> + not? some? plugin\test\invalid 'v run + ] + ] +] \ No newline at end of file