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.
2 Respostas
+ 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.
+ 1
Quits the program if boolean operation is false; useful for testing.