コード例 #1
0
 def test_bfs_one(self):
     my_dfa = ExampleDFA.one()
     self.assertEqual(my_dfa.bfs(), {
         'S1': True,
         'S2': True,
         'S3': True,
         'S4': True
     })
コード例 #2
0
 def test_unequivalence_simple_one(self):
     my_dfa_a = ExampleDFA.one()
     my_dfa_b = ExampleDFA.two()
     self.assertEqual(my_dfa_a.equivalence_test(my_dfa_b), False)
コード例 #3
0
 def test_equivalence_minimised_one(self):
     my_dfa_a = ExampleDFA.one()
     my_dfa_b = ExampleDFA.one()
     my_dfa_b.state_minimisation()
     self.assertEqual(my_dfa_a.equivalence_test(my_dfa_b), True)
コード例 #4
0
 def test_equivalence_simple_one(self):
     my_dfa_a = ExampleDFA.one()
     my_dfa_b = ExampleDFA.one()
     self.assertEqual(my_dfa_a.equivalence_test(my_dfa_b), True)