The moose likes Cattle Drive and the fly likes How to test Say 4b? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » This Site » Cattle Drive
Reply 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: 9033
    
  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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to test Say 4b?
 
Similar Threads
4b Say
Say 4b question
Say 4b - completely stumped
Java 4b end commas
4b structure