File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "How to test Say 4b?" Watch "How to test Say 4b?" New topic
Author

How to test Say 4b?

Deza Linikeli
Greenhorn

Joined: May 07, 2003
Posts: 6
Hi,
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.

Thanks,
Dez
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
a negative number
zero
a number from 1 and 9
ten
a number from 13 to 19
twenty
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
999,999,999,999
one trillion

java Say (no argument)

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


JavaBeginnersFaq
"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: http://aspose.com/file-tools
 
subject: How to test Say 4b?
 
Similar Threads
Java 4b end commas
4b structure
Say 4b - completely stumped
4b Say
Say 4b question