Assertions అనేవి ఒక పరీక్షలో ఉండే స్టేట్మెంట్లు, అవి ఒక షరతు నిజమైనదైనా లేదా కాదా అని చెక్ చేస్తాయి — వాస్తవ ఫలితం ఆశించిన ఫలితం ఎలా ఏకీభవిస్తుందో సరిచేసుకుంటాయి. పరీక్షలు pass లేదా fail అని నిర్ణయించేందుకు అవి ప్రధానమైనవి: ఒక 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).
