Add unit tests for range lookups
This commit is contained in:
3
unittests/for_each_range.chai
Normal file
3
unittests/for_each_range.chai
Normal file
@@ -0,0 +1,3 @@
|
||||
var v = [1,2,3];
|
||||
var r = range(v);
|
||||
for_each(r, print)
|
3
unittests/for_each_range.txt
Normal file
3
unittests/for_each_range.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
1
|
||||
2
|
||||
3
|
3
unittests/for_each_retro.chai
Normal file
3
unittests/for_each_retro.chai
Normal file
@@ -0,0 +1,3 @@
|
||||
var v = [1,2,3];
|
||||
var r = retro(range(v));
|
||||
for_each(r, print)
|
3
unittests/for_each_retro.txt
Normal file
3
unittests/for_each_retro.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
3
|
||||
2
|
||||
1
|
Reference in New Issue
Block a user