Allow using extractor name as argument for tests.js

pull/4/head
hazy 3 months ago
parent 94a4b7f79f
commit bd5c01d913
  1. 4
      tests.js

@ -27,7 +27,9 @@ const examples = [
console.log("Beginning extractor tests...\n");
if (process.argv[2]) {
run(parseInt(process.argv[2]));
let intForm = parseInt(process.argv[2])
if (intForm!=process.argv[2]) intForm = examples.findIndex(e => e.extractor==process.argv[2])
run(intForm);
} else {
run(0);
}

Loading…
Cancel
Save