created overridable report() function to be used in place of print()
This commit is contained in:
@@ -59,10 +59,8 @@ test_pass(TestState *s)
|
||||
print("\tpassing\n");
|
||||
|
||||
// expected result
|
||||
memset(&expected, 0, sizeof(TestState));
|
||||
mk_sample_state(&expected);
|
||||
expected.passed = 2;
|
||||
expected.failed = 2;
|
||||
expected.pending = 3;
|
||||
expected.run = 7;
|
||||
|
||||
// actual result
|
||||
@@ -85,10 +83,8 @@ test_fail(TestState *s)
|
||||
print("\tfailing\n");
|
||||
|
||||
// expected result
|
||||
memset(&expected, 0, sizeof(TestState));
|
||||
expected.passed = 1;
|
||||
mk_sample_state(&expected);
|
||||
expected.failed = 3;
|
||||
expected.pending = 3;
|
||||
expected.run = 7;
|
||||
|
||||
// actual result
|
||||
@@ -111,9 +107,7 @@ test_pend(TestState *s)
|
||||
print("\tpending\n");
|
||||
|
||||
// expected result
|
||||
memset(&expected, 0, sizeof(TestState));
|
||||
expected.passed = 1;
|
||||
expected.failed = 2;
|
||||
mk_sample_state(&expected);
|
||||
expected.pending = 4;
|
||||
expected.run = 7;
|
||||
|
||||
@@ -144,9 +138,7 @@ null_test(TestState *s)
|
||||
print("\tnull test\n");
|
||||
|
||||
// expected value
|
||||
memset(&expected, 0, sizeof(TestState));
|
||||
expected.passed = 1;
|
||||
expected.failed = 2;
|
||||
mk_sample_state(&expected);
|
||||
expected.pending = 4;
|
||||
expected.run = 7;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user