1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

updating comprehension speed test with the new normal comprehensions

This commit is contained in:
Jeremy Ashkenas 2010-01-10 16:39:38 -05:00
parent ad18378f7e
commit c265b7d5d6

View file

@ -52,7 +52,7 @@
}
});
JSLitmus.test('the new comprehensions', function() {
JSLitmus.test('weepy\'s comprehensions', function() {
__c = []; __a = arr;
__d = function(num, __b) {
__c.push(num);
@ -63,6 +63,14 @@
for (__b in __a) { if (__a.hasOwnProperty(__b)) __d(__a[__b], __b); }
}
});
JSLitmus.test('CoffeeScript 0.2.2 comprehensions', function() {
__c = []; __a = arr;
for (__b=0; __b<__a.length; __b++) {
num = __a[__b];
__c.push(num);
}
});
</script>
</body>