MCPcopy
hub / github.com/keon/algorithms / test_is_sorted

Method test_is_sorted

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

Source from the content-addressed store, hash-verified

28 self.assertFalse(second_is_consecutive([3, 2, 1]))
29
30 def test_is_sorted(self):
31 # Test case: bottom [6, 3, 5, 1, 2, 4] top
32 self.assertFalse(is_sorted([6, 3, 5, 1, 2, 4]))
33 self.assertTrue(is_sorted([1, 2, 3, 4, 5, 6]))
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

Callers

nothing calls this directly

Calls 1

is_sortedFunction · 0.90

Tested by

no test coverage detected