mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 08:46:53 +08:00
14 lines
214 B
ChaiScript
14 lines
214 B
ChaiScript
load_module("stl_extra");
|
|
|
|
auto uint16v = u16vector();
|
|
|
|
uint16v.resize(2);
|
|
assert_equal(uint16v.size(), 2);
|
|
|
|
uint16v.resize(6, 3);
|
|
assert_equal(uint16v[5], 3);
|
|
|
|
uint16v.resize(0);
|
|
assert_equal(uint16v.size(), 0);
|
|
|