Assertions हे टेस्टमधील स्टेटमेंट आहेत जे एखादी condition true आहे की नाही हे तपासतात — वास्तविक परिणाम अपेक्षित परिणामाशी जुळत आहे की नाही हे verify करतात. हे टेस्ट पास किंवा fail होण्याचा निर्णय कसा घेतो याचा मूळ आहे: जर एक assertion fail होते, तर टेस्ट fail होते.
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).
