Permalink
Browse files

passing take 6 test

  • Loading branch information...
1 parent 8f4d158 commit c04f208a21f63a5473dc123f2f4a0b4791bc31d5 @substack committed Jul 10, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/take.js
View
10 test/take.js
@@ -0,0 +1,10 @@
+var assert = require('assert');
+var mr = require('../');
+
+exports.take = function () {
+ var xs = mr.take(6);
+ assert.equal(xs.length, 6);
+ for (var i = 0; i < xs.length - 1; i++) {
+ assert.equal(xs[i+1].hsl()[0] - xs[i].hsl()[0], 60);
+ }
+};

0 comments on commit c04f208

Please sign in to comment.