示例#1
0
void test_func_back_const() {
	dynArray<std::string> const test { "hello", "what's", "up" };

	ASSERT_EQUAL("up", test.back());
}
示例#2
0
文件: Test.cpp 项目: flomerz/dynArray
void testBackConst() {
	std::vector<int> const iu { 1, 2, 5 };
	dynArray<int> const dyniu { 1, 2, 5 };
	ASSERT_EQUAL(iu.back(), dyniu.back());
}