R. Clayton (rclayton@monmouth.edu)
Sun, 2 Jul 2000 20:51:27 -0400 (EDT)
Your vector programming assignments have been graded. I had a number of
test cases specially crafted to make various assignments fail, but it turned
out not to be necessary: most of the assignments choked most gratifyingly on
four simple test cases.
In the interest of having things go better for you in next assignment, I've
included the four test cases below, as well as an example of a completely
successful test run.
--- test case 1 starts just after this line
>From
From:
To:
Subject: Test 1
This is test 1.
>From
From:
To:
Subject: Test 2
This is test 2.
--- test case 1 ends just before this line
--- test case 2 starts just after this line
>From
From: a bookworm
To: a bookworm
Subject: Test 1
A fine book: From Here to Eternity
--- test case 2 ends just before this line
--- test case 3 starts just after this line
--- test case 3 ends just before this line
That's right - the third test case is the empty file (/dev/null for those of
you conversant in unix). Always make sure you programs - no matter what kind
of programs you write - can handle the empty case.
The fourth test case was the example mailbox available off the vector
assignment home page.
Here's an example of a successful test run:
spawn readmbox ../test-mbox-1
There are 2 messages.
* 1
This is test 1.
* 2
This is test 2.
* 0
Message number 0 is out of range; the valid range is [1, 2].
* 3
Message number 3 is out of range; the valid range is [1, 2].
* q
spawn readmbox ../test-mbox-2
There is 1 message.
* 1
Fine book: From Here to Eternity.
* 2
Message number 2 is out of range; the valid range is [1, 1].
* q
spawn readmbox ../test-mbox-3
There are 0 messages.
* q
spawn readmbox ../test-mbox-4
There are 9 messages.
* 1
There will be a special emergency blood drive for the Seton Hall
survivors on Tuesday, Feb. 8th, from 12:00 noon to 4:00 p.m. in Anacon
Hall in the Student Center. Lambda Theta Alpha, Lambda Theta Phi and
the Student Government Association are sponsoring this event.
Every pint donated saves three lives. Please donate today!
* 9
Dear Icon Folks,
I currently planning a pair of intro NLP courses for non-programming linguists,
to be taught at Indiana University (I'll be visiting from next year). At
different times in the past, I have used Icon and Prolog for these purposes.
* q
This archive was generated by hypermail 2.0b3 on Fri Aug 11 2000 - 15:25:05 EDT