Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Miscellaneous
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
practice problem folder
Miscellaneous
Commits
0f7ff97c
Commit
0f7ff97c
authored
1 month ago
by
Duncan Holmes
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
7ccb1d26
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lab - linked list lab/TestDequesDifferentially.py
+15
-0
15 additions, 0 deletions
lab - linked list lab/TestDequesDifferentially.py
with
15 additions
and
0 deletions
lab - linked list lab/TestDequesDifferentially.py
0 → 100644
+
15
−
0
View file @
0f7ff97c
"""
Create a new Python file and a new test class TestDequesDifferentially.
In it, write differential test cases exercising collections.deque (a
built-in, array-based implementation with slightly different method
namesLinks to an external site.) and your LinkedDeque implementation.
Your test should exercise the deques in a variety of situations,
including situations where they have been modified on both sides.
Verify that the two implementations agree on your test cases.
"""
from
unittest
import
TestCase
from
linked_list_example
import
doubly_linked_node
from
linked_list_example
import
LinkedDeque
class
TestDequesDifferentially
(
TestCase
):
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment