Skip to content

Commit 83deb55

Browse files
author
William Blankenship
committed
Now iterates through list of tests and pulls out their numeric representations
1 parent f97bf01 commit 83deb55

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test.js

+10
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@ exports.test = function(dir,name,command) {
1818
process.exit(1);
1919
}
2020
}
21+
2122
//iterate through list of files removing all output files. Match input to output one by one then run tests async.
2223
//Use regex and splice maybe to do the test.
24+
var filename = /[0-9]*.output/;
25+
for(i=0;i<files.length;i++) {
26+
if(filename.test(files[i])) {
27+
files.splice(i--,1);
28+
} else {
29+
files[i] = files[i].split(".input")[0];
30+
}
31+
}
32+
console.log(files);
2333
}
2434
}

0 commit comments

Comments
 (0)