MemoryTest.cpp revision 519f9677a41239808f41a7c13ef1f6e05eb1ed50
1#include "Test.h"
2#include "TestClassDef.h"
3
4DEF_TEST(memory_calloc, reporter) {
5    const size_t kNum = 200;
6    char* zeros = (char*)sk_calloc_throw(kNum*sizeof(char));
7
8    for (size_t i = 0; i < kNum; i++) {
9        REPORTER_ASSERT(reporter, 0 == zeros[i]);
10    }
11    sk_free(zeros);
12}
13