This commit is contained in:
Victor Zverovich 2014-06-17 06:54:08 -07:00
parent 1275923a68
commit 7d5da66db9

View File

@ -257,7 +257,7 @@ TEST(ArrayTest, Append) {
Array<char, 10> array;
const char *test = "test";
array.append(test, test + 5);
EXPECT_STREQ("test", &array[0]);
EXPECT_STREQ(test, &array[0]);
EXPECT_EQ(5u, array.size());
array.resize(10);
array.append(test, test + 2);
@ -272,7 +272,7 @@ TEST(ArrayTest, AppendAllocatesEnoughStorage) {
const char *test = "abcdefgh";
array.resize(10);
array.append(test, test + 9);
EXPECT_STREQ("test", &array[10]);
EXPECT_STREQ(test, &array[10]);
EXPECT_EQ(19u, array.size());
EXPECT_EQ(19u, array.capacity());
}