Permalink
Browse files

Add more number tests to the unit test

  • Loading branch information...
1 parent 8dd55f9 commit 52c8a1ee1eadebab8dd7044976a134fcef548915 @creationix committed Feb 10, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 test.js
View
@@ -15,6 +15,14 @@ var tests = [
[1,2,3], [], {name: "Tim", age: 29}, {},
{a: 1, b: 2, c: [1, 2, 3]},
];
+for (var i = 0, l = tests.length; i < l; i++) {
+ var test = tests[i];
+ if (typeof test === 'number') {
+ tests.push(test + 1);
+ tests.push(test + 1);
+ tests.push(test + 0.5);
+ }
+}
[0x100, 0x1000, 0x10000, 0x100000].forEach(function (length) {
var list = new Array(length), obj = {};
for (var i = 0; i < length; i++) {

0 comments on commit 52c8a1e

Please sign in to comment.