Ejemplo n.º 1
0
 def test_stack_copy(self):
     """Should create an exact of the PDA stack."""
     stack = PDAStack(['a', 'b'])
     stack_copy = stack.copy()
     nose.assert_is_not(stack, stack_copy)
     nose.assert_equal(stack, stack_copy)
Ejemplo n.º 2
0
 def test_stack_copy(self):
     """Should create an exact of the PDA stack."""
     stack = PDAStack(['a', 'b'])
     stack_copy = stack.copy()
     nose.assert_is_not(stack, stack_copy)
     nose.assert_equal(stack, stack_copy)