You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
270 B
12 lines
270 B
4 months ago
|
#include "tests/Test.h"
|
||
|
|
||
|
DEF_TEST(memory_calloc, reporter) {
|
||
|
const size_t kNum = 200;
|
||
|
char* zeros = (char*)sk_calloc_throw(kNum*sizeof(char));
|
||
|
|
||
|
for (size_t i = 0; i < kNum; i++) {
|
||
|
REPORTER_ASSERT(reporter, 0 == zeros[i]);
|
||
|
}
|
||
|
sk_free(zeros);
|
||
|
}
|