TEST of sequence_exam


[ Follow Ups ] [ Post Followup ] [ CCNY CSc 212 Messages ] [ Help ]

Posted by Chanthee on October 05, 2002 at 19:14:45:

Does anyone know what could be causing the following error in test 2 of the sequence_exam.

Any helpful hints appreciated.

-CK

START OF TEST 2:
Testing situations where the cursor goes off the sequence (20 points).
Using attach to put 20 and 30 in the sequence, and then calling
advance, so that is_item should return false ... passed.
Inserting 10, which should go at the sequence's front.
Then calling advance three times to run cursor off the sequence ... passed.
Calling attach to put the numbers 40, 50, 60 ...300 at the sequence's end.
Now I will test that the sequence has 10, 20, 30, ...300.
Test failed to find 10
Test 2 failed.
END OF TEST 2.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:


[ Follow Ups ] [ Post Followup ] [ CCNY CSc 212 Messages ] [ Help ]