Is there a standard name for the opposite statement?

What should I call a function that completes execution, the condition is true? Deny? Is there a common name?

anti_assert(1=1, errmsg);

It’s easier for me to go this way, because then you can make a macro in c / C ++, for example:

#define anti_assert(expression) anti_assert(expresstion, #expression)

And then in the log I have a piece of code that caused the problem.

+3
source share
2 answers

I really like refutefrom Ruby Minitest . Does this instantly purify what we want (affirm), against what we don't want (refute).

+6
source

http://thesaurus.com/browse/assert . , "". , , . , . . java:

assertThat(actualValue).isEqualTo(expectedValue)
assertThat(actualValue).isNotEqualTo(expectedValue)
assertThat(actualValue).containsSubstring(substring)
assertThat(actualValue).has(feature)
assertThat(actualValue).is(expectedValue)

, .

+1

All Articles