Assertions enables you to test your assumptions about your program. For example, if you write a method that calculates the speed of a particle, you might assert that the calculated speed is less than the speed of light.

learn more… | top users | synonyms

2
votes
0answers
52 views

Dealing with conditional verification logic using guard assertion

I have parametrized test with 2 variants: NULL value and any NOT NULL value From this value is depends one assert: In case NULL it should be checked if object has field1 with value1 In ...
-1
votes
0answers
26 views

Learning error -checking in C

I want to learn error-checking in C. I posted my code on code review and got the answer that I didn't have error-checking. AFAIK I can do error-checking in several ways: Assertions for preconditions ...