You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`YT_TEST(g, tn)`| Creates a new non-parameterised test `tn` under group `g`. Group name is not yet used for any purpose. |
62
+
|`YT_TESTP(g, tn, t1, t2, ...)`| Creates a new parameterised test `tn` under group `g`. `t1`, `t2` etc are types of parameters to be passed to the test. |
63
+
|`YT_END()`| Ends a test function. It must exist at the very end of each test function. |
64
+
|`YT_INIT()`| Initializes yukti test internals. Must be called from `main` before test functions are run. |
65
+
|`YT_RETURN_WITH_REPORT()`| Returns from `main` after printing a summary. |
66
+
58
67
See [Parameterised test](./example/add_parameterised_test.c) example
59
68
60
69
### Assertion macros
@@ -92,6 +101,7 @@ in what order and which what parameters.
92
101
|`YT_MUST_CALL_ANY_ORDER(f, ...)`| Function `f` is called with the given arguments at least once in no particular order |
93
102
|`YT_MUST_CALL_ANY_ORDER_ATLEAST_TIMES(n, f, ...)`| Function `f` is called with the given arguments at least `n` times in no particular order |
94
103
|`YT_MUST_NEVER_CALL(f, ...)`| Function `f` with the given arguments is never called |
104
+
|`YT_IN_SEQUENCE(n)`| Repeats expectations `n` number of times. Used to put expectations for a loop. |
0 commit comments