From CS 455/555 Fall 2009

CS455-F09: Program 1 Test Cases

Test 0

java Prog1
Usage: java Prog1 URL integer .TLD

Test 1

java Prog1 http://www.odufootball.sports.com/schedule/ 68 .org
36
2448
NO

Test 2

java Prog1 http://amazon.com 3 .com
10
30
YES

Test 3

java Prog1 http://www.cs.odu.edu/~mweigle 10 .edu
23
230
YES

Test 4

java Prog1 http://www.cs.odu.edu/~mweigle 7 .com
23
161
NO

Test 5

java Prog1 http://www/~mweigle 3 .uk
12
36
ERR - hostname format

Test 6

java Prog1 website 3 .uk
ERR - URL format

Test 7

java Prog1 http://www.cs.odu.edu 3.5 .uk
ERR - arg 2

Test 8

java Prog1 http://www.cs.odu.edu 4 uk
ERR - TLD format

Test 9

java Prog1 http://odufootball.com 32 .net
15
480
NO
Retrieved from http://www.cs.odu.edu/~mweigle/CS455-F09/Prog1-tests
Page last modified on September 17, 2009, at 01:46 PM