#include "catch.hpp" #include "Array.hpp" TEST_CASE("Array append", "[array][append]") { /*ecci::*/Array array; array.append(-1); array.append(2); REQUIRE(array[0] == -1); REQUIRE(array[1] == 2); } TEST_CASE("Array append for", "[array][append]") { /*ecci::*/Array array; const size_t COUNT = 1000000; for (size_t index = 0; index < COUNT; ++index) { array.append(index); } REQUIRE(array[0] == 0); REQUIRE(array[COUNT - 1] == COUNT - 1); }