ChaiScript/unittests/for_each_range.chai
Jonathan Turner c73f16fdfe Fixing 4.x grammar to be backward compatible.
Added 3.x unit tests back to show this.
2012-05-17 10:14:50 -07:00

4 lines
87 B
ChaiScript

auto v = [1,2,3];
auto r = range(v);
for_each(r, fun(x) { assert_equal(true, x>0); } )