summaryrefslogtreecommitdiff
path: root/test/test_pta.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_pta.py')
-rwxr-xr-xtest/test_pta.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_pta.py b/test/test_pta.py
index 8ca41aa..dba67d7 100755
--- a/test/test_pta.py
+++ b/test/test_pta.py
@@ -162,6 +162,8 @@ class TestPTA(unittest.TestCase):
pta.add_transition('IDLE', 'IDLE', 'set2')
self.assertEqual(sorted(dfs_tran_to_name(pta.dfs(2, trace_filter=[['init', 'set1', 'set2'], ['init', 'set2', 'set1']]), False)),
[['init', 'set1', 'set2'], ['init', 'set2', 'set1']])
+ self.assertEqual(sorted(dfs_tran_to_name(pta.dfs(2, trace_filter=[['init', 'set1', '$'], ['init', 'set2', '$']]), False)),
+ [['init', 'set1'], ['init', 'set2']])
def test_dfs_accepting(self):
pta = PTA(['IDLE', 'TX'], accepting_states = ['IDLE'])