From 3bc2838360627f78a91a7cad81f3bc97711410c2 Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 29 May 2022 14:50:55 -0500 Subject: refactor: move everything into src/ subdirectory --- modules/test-assert.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 modules/test-assert.js (limited to 'modules/test-assert.js') 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 }; -- cgit v1.2.1