ref: 42bc0e304eef602cd288728a1dbe0b98694f5681
dir: /test/libtap.c/
/* Copyright (c) 2013, 2014, Louis P. Santillan <lpsantil@gmail.com> All rights reserved. */ #include <stdio.h> #include "tap.h" void plan( unsigned int num ) { printf( "1..%d\n", num ); } unsigned int ok( unsigned int ok, const char* msg ) { static int testnum = 0; printf( "%s %d - %s\n", ( ok ? "ok" : "not ok" ), ++testnum, msg ); return ok; }