Logo

Programming-Idioms

History of Idiom 123 > diff from v22 to v23

Edit summary for version 23 by REUSS:
[Lua] Corrected to match the lead paragraph

Version 22

2020-05-21, 16:07:07

Version 23

2020-05-29, 14:50:39

Idiom #123 Assert condition

Verify that predicate isConsistent returns true, otherwise report assertion violation.
Explain if the assertion is executed even in production environment or not.

Idiom #123 Assert condition

Verify that predicate isConsistent returns true, otherwise report assertion violation.
Explain if the assertion is executed even in production environment or not.

Variables
isConsistent
Variables
isConsistent
Code
assert(isthisalright,"error, it's not") 
Code
assert(isConsistent() , "Assertion violation")