aboutsummaryrefslogtreecommitdiffstats
path: root/src/prove.c
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2023-01-24 06:28:34 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2023-01-24 06:28:34 (GMT)
commit4a4c430d3affc992737d11c6b403c62ceb97007c (patch)
tree5fc22b1f6abb68ef51492f6707d09d6ce0926537 /src/prove.c
parente5419a02b2e84e2a792d8b385e099c85f1489cf4 (diff)
downloadpowwow-master.zip
powwow-master.tar.gz
powwow-master.tar.bz2
factor out parsing #substitute and #markHEADmaster
Diffstat (limited to 'src/prove.c')
-rw-r--r--src/prove.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/prove.c b/src/prove.c
index 33757f3..497ebda 100644
--- a/src/prove.c
+++ b/src/prove.c
@@ -265,12 +265,12 @@ static void TEST_mark_syntax_error()
C_output_from_user_input_is(
"#mark =bar",
- "#marker must be non-empty.\n",
+ "#mark must be non-empty\n",
"#mark - empty error");
C_output_from_user_input_is(
"#mark foo&$foo=bar",
- "#error: two wildcards (& or $) may not be next to eachother\n",
+ "#mark two wildcards (& or $) may not be next to eachother\n",
"#mark - two consecutive wildcards");
}
@@ -396,9 +396,9 @@ static void TEST_mark()
static void TEST_substitute_syntax_error()
{
- C_output_from_user_input_contains(
+ C_output_from_user_input_is(
"#substitute = ",
- "#substitute must be non-empty.",
+ "#substitute must be non-empty\n",
"#substitute - syntax error");
}
@@ -434,15 +434,18 @@ void prove()
{
_is_proving = 1;
- do_test(TEST_tap, "TAP output");
+ int looping = 2;
+ while (looping--) {
+ do_test(TEST_tap, "TAP output");
- do_test(TEST_mark_syntax_error, "#mark syntax");
- do_test(TEST_mark_reset_step1, "#mark reset step 1");
- do_test(TEST_mark_reset_step2, "#mark reset step 2");
- do_test(TEST_mark, "#mark usage");
+ do_test(TEST_mark_syntax_error, "#mark syntax");
+ do_test(TEST_mark_reset_step1, "#mark reset step 1");
+ do_test(TEST_mark_reset_step2, "#mark reset step 2");
+ do_test(TEST_mark, "#mark usage");
- do_test(TEST_substitute_syntax_error, "#substitute syntax error");
- do_test(TEST_substitute, "#substitute usage");
+ do_test(TEST_substitute_syntax_error, "#substitute syntax error");
+ do_test(TEST_substitute, "#substitute usage");
+ }
done_testing();