All lessonsSource
馃捇 Coding 13 minLesson 43 of 50
Unit Testing Fundamentals
Ensure your programs work as expected by writing automated checks for code.
What you will learn
- Unit tests check individual parts of code in isolation.
- Assertions compare the actual result to the expected value.
- Testing helps identify bugs early in the development cycle.
Unit testing | Intro to CS - Python | Khan Academy
Khan Academy 路 plays in StudyAI
Watch once, then work through the practice sheet.
Practice sheets
3 printable PDFs1
Recall drill
5 questions 路 write-in answer lines
2
Apply it
4 questions 路 write-in answer lines
3
Test yourself
4 questions 路 write-in answer lines
Interactive quiz
Question 1 of 1What does an assertion check?
