I'm wondering, if it would be useful to add a context argument to the assert collection (e.g. on initialization or when calling reportAssertions()), or in the assert functions themselves.
It could be used to to clarify that an assertion is only required to pass in certain contexts, e.g. if some flag is TRUE.
When I have a sub function that is only used when x is TRUE in a parent function, it would be useful to add that scope information to all asserts in that function.
I'm wondering, if it would be useful to add a
context
argument to the assert collection (e.g. on initialization or when callingreportAssertions()
), or in the assert functions themselves. It could be used to to clarify that an assertion is only required to pass in certain contexts, e.g. if some flag isTRUE
.When I have a sub function that is only used when
x
isTRUE
in a parent function, it would be useful to add that scope information to all asserts in that function.