Permalink
Browse files

adjusted test slightly

  • Loading branch information...
1 parent 423e4ef commit b4f1cc2682f03c7984cfcc2368bede5aa5874996 @goddamnbugs committed May 7, 2011
Showing with 15 additions and 8 deletions.
  1. +15 −8 tests/test.nude.js
View
@@ -4,11 +4,18 @@
var nude = new (require('../lib/node-nude')).nude();
-var filename = __dirname + '/images/4.jpg';
-nude.isnude(filename, function(result) {
- if (result) {
- console.log(filename + " : Nude!!");
- } else {
- console.log(filename + " : No nude!!");
- }
-});
+function scan(filename) {
+ nude.isnude(filename, function(result) {
+ if (result) {
+ console.log(filename + " : Nude!!");
+ } else {
+ console.log(filename + " : No nude!!");
+ }
+ });
+}
+
+scan(__dirname + '/images/4.jpg');
+// uncomment this once the speed issue has been addressed...right now it isn't pretty
+//for (var i = 1; i < 5; i++) {
+// scan(__dirname + '/images/' + i +'.jpg');
+//}

0 comments on commit b4f1cc2

Please sign in to comment.