implemented 6 more passing tests for range. Now works like python's range

This commit is contained in:
Kirill Ishanov
2009-12-01 02:10:56 +03:00
parent d8cf99ba89
commit 451d9c5d62
5 changed files with 42 additions and 16 deletions

View File

@@ -2,10 +2,6 @@ $(document).ready(function() {
module("Collection functions (each, any, select, and so on...)");
test("generators: range", function() {
equals(_.range(4).join(' '), '0 1 2 3 4', 'range with positive number generates an array of of elements 0,1,2,...,n');
});
test("collections: each", function() {
_.each([1, 2, 3], function(num, i) {
equals(num, i + 1, 'each iterators provide value and iteration count');