1
0
mirror of https://github.com/ioacademy-jikim/debugging synced 2025-06-10 01:16:12 +00:00
2015-12-13 22:34:58 +09:00

17 lines
343 B
Plaintext

/* A complete test example (with trailing whitespace) */
#include <stdio.h>
# suite The Suite
# tcase The Test Case
# test the_test
int nc;
const char msg[] = "\n\n Hello, world!\n";
nc = printf("%s", msg);
fail_unless(nc == (sizeof msg
- 1) /* for terminating NUL. */
);