Sunday, January 31, 2010

Practice 1 - failed tests pt1

The following is a temporary list of my failed tests, along with an explanation.

- test11() -> If ticket price is 200 cents and total deposit is $6.00 then there should be 3 tickets, not 6.
- test12() -> How can the change be 2 when returnChange() was already called? The change has already been returned which resets the data inside the Ticket class. Quote "The returnChange( ) method causes the object to return a change to the customer."
- test13() -> Same reason as test12()
- test14() -> Same reason as test12() -> am I crazy? When I read the specs, it clearly says "The issueTickets() method returns the change to the customer..." which to me, sounds like the change should be returned. Why then would the test check if there is change waiting to be returned if it's already been returned???

What am I missing here?!?!?!

No comments:

Post a Comment