Assertions એ પરીક્ષણમાંના statements છે જે તપાસે છે કે શરત સત્ય છે કે નહીં — ચકાસણી કરે છે કે વાસ્તવિક પરિણામ અપેક્ષિત પરિણામ સાથે મેળ ખાય છે કે નહીં. તેઓ આ છે કે કેવી રીતે પરીક્ષણો પાસ કે નિષ્ફળ તે નક્કી કરે છે તેનો મહત્વપૂર્ણ ભાગ: જો assertion નિષ્ફળ થાય, તો પરીક્ષણ નિષ્ફળ થાય છે.
Assertions શું કરે છે
An ASSERTION checks that something is as expected:
→ "assert that the actual value EQUALS the expected value"
→ if TRUE → the assertion passes; if FALSE → the assertion FAILS → the TEST FAILS
→ Assertions are how a test VERIFIES behavior (the "check" part of a test).
