📞 0339-0387701 (WhatsApp) Contact

« Back to Software Engineering (NCCIA)

A unit test for a function that calculates tax should primarily check what?

A. That the whole website loads quickly
B. That the user likes the colour scheme
C. That the function returns the correct tax for given inputs ✅
D. That the database backup works

Correct Answer: C. That the function returns the correct tax for given inputs

Explanation

Unit tests check the correctness of a single unit's logic for representative and boundary inputs.