drop unused function arguments

also add test for "drop_unused" (the last one fails for now)
This commit is contained in:
Mihai Bazon
2012-10-13 15:04:44 +03:00
parent b071c9d079
commit fcc0229087
3 changed files with 118 additions and 0 deletions

View File

@@ -37,6 +37,12 @@ function find_test_files(dir) {
var files = fs.readdirSync(dir).filter(function(name){
return /\.js$/i.test(name);
});
if (process.argv.length > 2) {
var x = process.argv.slice(2);
files = files.filter(function(f){
return x.indexOf(f) >= 0;
});
}
return files;
}