1 2 3 4 5 6 7 8 9 10 11 12
#include <cassert> int add(int, int); void test_add() { assert(add(2, 3) == 5); } int main() { test_add(); return 0; }