Logo

Programming-Idioms

History of Idiom 123 > diff from v30 to v31

Edit summary for version 31 by programming-idioms.org:
[Rust] +DocURL

Version 30

2020-12-30, 10:24:46

Version 31

2021-03-26, 18:28:28

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
Extra Keywords
debug testing test
Extra Keywords
debug testing test
Code
assert!(isConsistent);
Code
assert!(isConsistent);
Doc URL
https://doc.rust-lang.org/std/macro.assert.html