MCPcopy Index your code
hub / github.com/keon/algorithms / test_remove_min

Method test_remove_min

tests/test_stack.py:36–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 self.assertFalse(is_sorted([3, 4, 7, 8, 5, 6]))
35
36 def test_remove_min(self):
37 # Test case: bottom [2, 8, 3, -6, 7, 3] top
38 self.assertEqual([2, 8, 3, 7, 3], remove_min([2, 8, 3, -6, 7, 3]))
39 # Test case: 2 smallest value [2, 8, 3, 7, 3]
40 self.assertEqual([4, 8, 7], remove_min([4, 8, 3, 7, 3]))
41
42 def test_stutter(self):
43 # Test case: bottom [3, 7, 1, 14, 9] top

Callers

nothing calls this directly

Calls 1

remove_minFunction · 0.90

Tested by

no test coverage detected