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