0

What is assertion?

Its came up in the course but it wasn't explicitly stated what it does, where it goes or how to interpret its output.

29th Dec 2016, 2:29 PM
Jedrzej Kiecol
Jedrzej Kiecol  - avatar
2 Réponses
+ 3
Assertions are a systematic way to check that the internal state of a program is as the programmer expected, with the goal of catching bugs.
29th Dec 2016, 3:53 PM
Josh
Josh - avatar
+ 1
Quits the program if boolean operation is false; useful for testing.
30th Dec 2016, 8:22 AM
Justin Petluk
Justin Petluk - avatar