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 };