943,771 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 465
  • C++ RSS
Oct 27th, 2008
0

Test Casing

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
DaJoker is offline Offline
2 posts
since Oct 2008
Oct 27th, 2008
0

Re: Test Casing

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
Reputation Points: 133
Solved Threads: 141
Veteran Poster
dickersonka is offline Offline
1,162 posts
since Aug 2008
Oct 27th, 2008
0

Re: Test Casing

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!
Reputation Points: 12
Solved Threads: 5
Junior Poster in Training
gregorynoob is offline Offline
86 posts
since Jun 2008
Oct 27th, 2008
0

Re: Test Casing

Lol the paper method, I like that one.

I assumed you meant unit tests, here are some links for them.

http://www.deitel.com/ResourceCenter...7/Default.aspx
Reputation Points: 133
Solved Threads: 141
Veteran Poster
dickersonka is offline Offline
1,162 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Overload DllExperted function
Next Thread in C++ Forum Timeline: This code ok or should i do diffo way?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC