Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adjusted test slightly

  • Loading branch information...
commit b4f1cc2682f03c7984cfcc2368bede5aa5874996 1 parent 423e4ef
@goddamnbugs authored
Showing with 15 additions and 8 deletions.
  1. +15 −8 tests/test.nude.js
View
23 tests/test.nude.js
@@ -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');
+//}
Please sign in to comment.
Something went wrong with that request. Please try again.