Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Output when using
- tailPtr = newPtr->next;
- // ------------------------------------------//
- START OF TEST 4:
- Testing the copy constructor (2 points).
- Copy constructor test: for an empty Sequence.
- Testing that size() returns 0 ... Passed.
- Testing that is_item() returns false ... Passed.
- I'll call start() and look at the items one more time...
- All tests passed for this Sequence.
- Copy constructor test: for a Sequence with cursor at tail.
- tail assigned
- Testing that size() returns 20 ... Passed.
- Testing that is_item() returns true ... Passed.
- The cursor should be at item [19] of the Sequence
- (counting the first item as [0]). I will advance the cursor
- to the end of the Sequence, checking that each item is correct...Passed.
- I'll call start() and look at the items one more time...
- The cursor should be at item [0] of the Sequence
- (counting the first item as [0]). I will advance the cursor
- to the end of the Sequence, checking that each item is correct...Passed.
- All tests passed for this Sequence.
- Copy constructor test: with cursor near middle.
- // infinitely looping here
- Output when using
- tailPtr = newPtr;
- // ------------------------------------------//
- START OF TEST 4:
- Testing the copy constructor (2 points).
- Copy constructor test: for an empty Sequence.
- Testing that size() returns 0 ... Passed.
- Testing that is_item() returns false ... Passed.
- I'll call start() and look at the items one more time...
- All tests passed for this Sequence.
- Copy constructor test: for a Sequence with cursor at tail.
- tail assigned
- Testing that size() returns 20 ... Passed.
- Testing that is_item() returns true ... Passed.
- The cursor should be at item [19] of the Sequence
- (counting the first item as [0]). I will advance the cursor
- to the end of the Sequence, checking that each item is correct...Passed.
- I'll call start() and look at the items one more time...
- The cursor should be at item [0] of the Sequence
- (counting the first item as [0]). I will advance the cursor
- to the end of the Sequence, checking that each item is correct...Passed.
- All tests passed for this Sequence.
- Copy constructor test: with cursor near middle.
- Segmentation fault: 11
Advertisement
Add Comment
Please, Sign In to add comment