Question: please help with writing the test case for the method __contains__ in LinkedList class. from typing import List from prep5 import Linkedlist, Node ## #


please help with writing the test case for the method __contains__ in LinkedList class.
from typing import List from prep5 import Linkedlist, Node ## # Part 2 # In this part of the prep, you are to write test cases for the contains # method # # We will have a correct version of prep5.py, as well as a version with an # undisclosed bug in the contains method. We will not give you hints as # to what the bug is, so test thoroughly! # # When you are done, run the automated self-test on Markus. If you pass the # test case named 'test_contains_test_cases': congratulations! You've found # the bug, and you're done with this part. # # You may write as many test cases as you want. However, your test cases must # fulfill the following requirements: - All of your tests must pass on our correct version of prep5.py - At least one of your tests must fail on the version with a bug. def contains (self, item: Any) -> bool: """Return whether
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
