ChaiScript/unittests/range_find.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

7 lines
136 B
ChaiScript

auto v = [2, 1, "Hi", 5.5]
auto r = v.find("Hi");
assert_equal("Hi", r.front())
auto r2 = v.find(2, `<`);
assert_equal(1, r2.front());