예제 #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)
예제 #2
0
파일: test_dpda.py 프로젝트: xrick/automata
 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)