summaryrefslogtreecommitdiff
path: root/modules/test-assert.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-05-29 14:50:55 -0500
committersanine <sanine.not@pm.me>2022-05-29 14:50:55 -0500
commit3bc2838360627f78a91a7cad81f3bc97711410c2 (patch)
tree54d260b45895c1923a785efce817b94836660f35 /modules/test-assert.js
parentd35e02ecdcef6d4f120bd572f2aae36b467b7761 (diff)
refactor: move everything into src/ subdirectory
Diffstat (limited to 'modules/test-assert.js')
-rw-r--r--modules/test-assert.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/modules/test-assert.js b/modules/test-assert.js
deleted file mode 100644
index 7be2989..0000000
--- a/modules/test-assert.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import { strict as assert } from 'node:assert';
-
-function test(description, func)
-{
- process.stdout.write(description);
- let error = null;
- try {
- func();
- }
- catch(err) {
- error = err;
- }
-
- if (error) {
- console.log(' - FAIL');
- console.log(error);
- }
- else console.log(' - OK');
-}
-
-export { test, assert };