+#ifndef CCAN_TAP_H
+#define CCAN_TAP_H
/*-
* Copyright (c) 2004 Nik Clayton
* All rights reserved.
* int x = somefunc();
* if (x > 0)
* pass("somefunc() returned a valid value");
- * else
+ * else
* fail("somefunc() returned an invalid value");
*/
# define pass(...) ok(1, __VA_ARGS__)
* This way, should a test start to succeed unexpectedly, tools like prove(1)
* will indicate this and you can move the test out of the todo block. This
* is much more useful than simply commenting out (or '#if 0') the tests.
- *
+ *
* From the Test::More documentation:
* If it's something the programmer hasn't done yet, use TODO. This is for
* any code you haven't written yet, or bugs you have yet to fix, but want to
/**
* exit_status - the value that main should return.
*
- * For maximum compatability your test program should return a particular exit
+ * For maximum compatibility your test program should return a particular exit
* code (ie. 0 if all tests were run, and every test which was expected to
* succeed succeeded).
*
void (*tap_fail_callback)(void);
#endif /* C99 or gcc */
+#endif /* CCAN_TAP_H */