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

6 lines
110 B
ChaiScript

auto x = [1, 2]
x.push_back(3)
assert_equal(3, x.size())
assert_equal(3, x.back())
assert_equal(1, x.front())