Test Cases

1 view
Skip to first unread message

Lucas Hawk

unread,
Dec 4, 2010, 2:52:41 PM12/4/10
to COSC2320
Has anybody out there created or come across some really good test
cases?

i have been using the one provided and just adding typos, adding
commands, etc.

Anybody got any torture cases or real stress tests?

-Luke

Anthony White

unread,
Dec 4, 2010, 3:13:26 PM12/4/10
to cosc...@googlegroups.com
I'm pretty much doing the same thing.  Best way to test it is to make the cases as obscure as you possibly can and see how your program handles it.

Joe

unread,
Dec 4, 2010, 5:45:00 PM12/4/10
to COSC2320
Anyone using the test cases in the PPT on Mario's page?

Check out slide 13. Does there seem to be an error in their output?

Khoa Le

unread,
Dec 5, 2010, 12:38:29 PM12/5/10
to cosc...@googlegroups.com
If you dont have the test case, use C++ or any language to write one. Create a 32000 lines or more using loops, random ID from 0 to 4000000000 using

(unsigned int)((double)rand()/RAND_MAX * 4000000001)

then random a "string" length 5 for the title. For this one, random a single char 5 times using

(char)(rand()%26 + 97)

Write all those things in a text file.

Hope that helps

Khoa Le
Reply all
Reply to author
Forward
0 new messages