@@@ man wip
[mLib] / test / testrig.3
index b6e30f3..e33bbb0 100644 (file)
@@ -18,37 +18,37 @@ testrig \- generic test rig
 .SH SYNOPSIS
 .nf
 .B "#include <mLib/testrig.h>"
-
+.PP
 .B "#define TEST_FIELDMAX ..."
-
+.PP
 .ta 2n
 .B "typedef struct {"
 .B "   unsigned tests, failed;"
 .B "} test_results";
-
+.PP
 .B "typedef struct {"
 .BI "  void (*cvt)(const char *" buf ", dstr *" d );
 .BI "  void (*dump)(dstr *" d ", FILE *" fp );
 .B "} test_type";
-
+.PP
 .B "typedef struct {"
 .B "   const char *name;"
 .BI "  void (*test)(dstr " dv "[]);"
 .B "   const test_type *f[TEST_FIELDMAX];"
 .B "} test_chunk";
-
+.PP
 .B "typedef struct {"
 .B "   const char *name;"
 .B "   const test_chunk *chunks;"
 .B "} test_suite";
-
+.PP
 .B "const test_type type_hex;"
 .B "const test_type type_string;"
 .B "const test_type type_int;"
 .B "const test_type type_long;"
 .B "const test_type type_ulong;"
 .B "const test_type type_uint32;"
-
+.PP
 .ta \w'\fBint test_do('u
 .BI "int test_do(const test_suite " suite [],
 .BI "  FILE *" fp ", test_results *" results );