File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Cattle Drive and the fly likes How to test Say 4b? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "How to test Say 4b?" Watch "How to test Say 4b?" New topic

How to test Say 4b?

Deza Linikeli

Joined: May 07, 2003
Posts: 6
Any suggestions on how to do a decent test before sending in a solution for 4b? I think I am close to sending my first (of many I am sure ) attempts. I have tested it out with a bunch of random numbers, but it doesn't make me feel confident that this first attempt wouldn't be wasting a nitpickers time. Any suggestion other than testing all numbers between 0-999999999999? I figured others may have had the same problem before me.

Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
a negative number
a number from 1 and 9
a number from 13 to 19
a multiple of 10 from 20 to 90
ninety nine
one hundred
a number from 101 to 109
a number from 113 to 119
one thousand something
one hundred thousand fifty
one billion
one trillion

java Say (no argument)

If it works for all these, it should pretty much work for any number I think.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: How to test Say 4b?
It's not a secret anymore!