I have a program and I want to know how would I put test cases on this program. its an sum and average program and so I'm trying to figure out how test it. I don't want the answer to my program but i want to see how a test case would look sso that I can feed from it to make my own

Recommended Answers

All 3 Replies

not sure what your methods look like, but lets say you have a method that will add a number and return the sum

your test case, will provide the number and ensure it is the correect result when its returned

hmm, define test case...? i don't get it... you can write some numbers onto a piece of paper, add them up and divide by the their quantity... enter those numbers into your program and check if the results match!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.