regexoid/test.mjs

20 lines
365 B
JavaScript

import { _tests } from './index.mjs'
let total=0, passed=0;
for (let i in _tests) {
console.log('--\\\n###= [[',i,']] ====\n--/\n');
try {
total++;
await _tests[i]();
passed++;
console.log('\n@@@ PASSED',i)
} catch(e) {
console.error(e);
console.log('\n@@@ FAILED',i)
}
console.log('\n')
}
console.log(`RESULT: ${passed}/${total} TESTS PASSED`)