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

Method test_stutter

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

Source from the content-addressed store, hash-verified

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
44 self.assertEqual(
45 [3, 3, 7, 7, 1, 1, 14, 14, 9, 9], first_stutter([3, 7, 1, 14, 9])
46 )
47 self.assertEqual(
48 [3, 3, 7, 7, 1, 1, 14, 14, 9, 9], second_stutter([3, 7, 1, 14, 9])
49 )
50
51 def test_switch_pairs(self):
52 # Test case: even number of values in stack

Callers

nothing calls this directly

Calls 2

first_stutterFunction · 0.90
second_stutterFunction · 0.90

Tested by

no test coverage detected