コード例 #1
0
ファイル: test_dpda.py プロジェクト: caleb531/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)
コード例 #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)