From fcc0229087c4efd212a1050f38d3049d52344b3a Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Sat, 13 Oct 2012 15:04:44 +0300 Subject: drop unused function arguments also add test for "drop_unused" (the last one fails for now) --- test/run-tests.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/run-tests.js') diff --git a/test/run-tests.js b/test/run-tests.js index abace39c..87301412 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -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; } -- cgit v1.2.3