blob: c7eff30a564bcbe6513dc1c4df844b0524ee36f9 [file] [log] [blame]
mtklein@google.com519f9672013-09-20 14:31:45 +00001#include "Test.h"
mtklein@google.com519f9672013-09-20 14:31:45 +00002
3DEF_TEST(memory_calloc, reporter) {
4 const size_t kNum = 200;
5 char* zeros = (char*)sk_calloc_throw(kNum*sizeof(char));
6
7 for (size_t i = 0; i < kNum; i++) {
8 REPORTER_ASSERT(reporter, 0 == zeros[i]);
9 }
10 sk_free(zeros);
11}