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

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 is in this list. Use == to compare items. # Equivalent to lst. _contains (2) >>> lst = three_items (1, 2, 3) >>> 2 in lst True >>> 4 in lst False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!