1 #include <ccan/priority_queue/priority_queue.h>
2 #include <ccan/tap/tap.h>
6 /* This is how many tests you plan to run */
9 /* Simple thing we expect to succeed */
11 /* Same, with an explicit description of the test. */
12 ok(some_test(), "%s with no args should return 1", "some_test")
13 /* How to print out messages for debugging. */
14 diag("Address of some_test is %p", &some_test)
15 /* Conditional tests must be explicitly skipped. */
17 ok1(test_some_feature())
19 skip(1, "Don't have SOME_FEATURE")
22 /* This exits depending on whether all tests passed */