chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
@@@ tvec doc wip
[mLib]
/
utils
/
t
/
control-test.c
diff --git
a/utils/t/control-test.c
b/utils/t/control-test.c
index 772ddd29a03fdcf6361e931d39ca22e96e11dcc9..44c4d2fb90a9c66f1fcfc4656d1978bcb844026e 100644
(file)
--- a/
utils/t/control-test.c
+++ b/
utils/t/control-test.c
@@
-41,9
+41,9
@@
static struct tvec_state tvstate;
static int step;
#define TESTGROUP(name) \
static int step;
#define TESTGROUP(name) \
- TVEC_TESTGROUP
(tg, &tvstate, name)
\
+ TVEC_TESTGROUP
_TAG(grp, &tvstate, name)
\
MC_BEFORE(init, { step = 0; })
MC_BEFORE(init, { step = 0; })
-#define TEST TVEC_TEST(test, &tvstate)
+#define TEST TVEC_TEST
_TAG
(test, &tvstate)
#define STEP(s) do { \
tvec_claim(&tvstate, s == step, __FILE__, __LINE__, \
"found %d /= expected %d", s, step); \
#define STEP(s) do { \
tvec_claim(&tvstate, s == step, __FILE__, __LINE__, \
"found %d /= expected %d", s, step); \
@@
-61,7
+61,7
@@
int main(int argc, char *argv[])
int argpos;
int i;
int argpos;
int i;
- tvec_parseargs(argc, argv, &tvstate, &argpos, &tvec_adhoc
info
);
+ tvec_parseargs(argc, argv, &tvstate, &argpos, &tvec_adhoc
config
);
if (argpos < argc) die(2, "no input files expected");
tvec_adhoc(&tvstate, &test);
if (argpos < argc) die(2, "no input files expected");
tvec_adhoc(&tvstate, &test);
@@
-183,7
+183,7
@@
int main(int argc, char *argv[])
FOR_FIZZBUZZ(fb, 19, 32)
TEST
if (TVEC_CLAIM(&tvstate, ref[i]))
FOR_FIZZBUZZ(fb, 19, 32)
TEST
if (TVEC_CLAIM(&tvstate, ref[i]))
- { TVEC_CLAIMEQ_
STR
Z(&tvstate, fb, ref[i]); i++; }
+ { TVEC_CLAIMEQ_
TEXT
Z(&tvstate, fb, ref[i]); i++; }
TVEC_CLAIM(&tvstate, !ref[i]);
}
TVEC_CLAIM(&tvstate, !ref[i]);
}