ChaiScript/unittests/retro.chai

5 lines
88 B
ChaiScript

auto x = {1, 2, 3, 4}
auto r = retro(range(x))
r.pop_front()
assert_equal(3, r.front())