Assertions minangka pernyataan ing test sing mriksa manawa kondisi kuwi bener — verifikasi manawa hasil aktual cocog karo hasil sing diharapake. Kuwi minangka inti saka cara test nemtokake pass utawa fail: yen assertion gagal, test gagal.
Apa sing ditindakake 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).
