mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-02-07 10:19:57 +08:00
Add unit tests for range lookups
This commit is contained in:
parent
9762e15460
commit
d3cdd6959d
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
|
||||||
Loading…
x
Reference in New Issue
Block a user