I just started with Qunit, and don't know much about it.
- <script>
- function calc(firstno, secnum) {
- return firstno + secnum;
- }
- function main(firstno, secnum) {
- return calc(firstno, secnum);
- }
- </script>
So, how should I test the
calc
function when I write a test case for
themain
function.