Tests DFA¶
List
TestDfaWordAcceptance ([methodName]) |
|
TestDfaCompletion ([methodName]) |
|
TestDfaComplementation ([methodName]) |
|
TestDfaIntersection ([methodName]) |
|
TestDfaUnion ([methodName]) |
|
TestDfaMinimization ([methodName]) |
|
TestDfaReachable ([methodName]) |
|
TestDfaCoReachable ([methodName]) |
|
TestDfaTrimming ([methodName]) |
|
TestDfaProjection ([methodName]) |
|
TestDfaNonemptinessCheck ([methodName]) |
Functions
-
class
tests.test_DFA.
TestDfaCoReachable
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
test_dfa_co_reachable_already_co_reachable
()[source]¶ Tests making co_reachable a DFA even if its already completely co_reachable
-
test_dfa_co_reachable_empty_transitions
()[source]¶ Tests making co_reachable a DFA without transitions
-
test_dfa_co_reachable_no_accepting_state_co_reachable
()[source]¶ Tests making co_reachable a DFA where the initial state doesn’t reach any accepting state
-
test_dfa_co_reachable_side_effects_copy
()[source]¶ Tests the function doesn’t make side effects if a copy is passed as input
-
-
class
tests.test_DFA.
TestDfaComplementation
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
test_dfa_complementation_empty_transitions
()[source]¶ Tests a complementation on a DFA without transitions.
-
test_dfa_complementation_side_effects
()[source]¶ Tests the function doesn’t make side effects on input
-
-
class
tests.test_DFA.
TestDfaCompletion
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
test_dfa_completion_side_effects
()[source]¶ Tests the function correctly makes side effects on input
-
test_dfa_completion_side_effects_copy
()[source]¶ Tests the function doesn’t make side effects if a copy is passed as input
-
-
class
tests.test_DFA.
TestDfaIntersection
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
test_dfa_intersection_intersecting
()[source]¶ Tests a correct intersection between DFAs partially intersected
-
test_dfa_intersection_side_effects_alphabet
()[source]¶ Tests that the intersection function doesn’t make side effects on input DFAs alphabet
-
test_dfa_intersection_side_effects_initial_state
()[source]¶ Tests that the intersection function doesn’t make side effects on input DFAs initial state
-
test_dfa_intersection_wrong_dict_1
()[source]¶ Tests a dict() in input different from a well formatted dict() representing a DFA. [EXPECTED FAILURE]
-
test_dfa_intersection_wrong_dict_2
()[source]¶ Tests a dict() in input different from a well formatted dict() representing a DFA. [EXPECTED FAILURE]
-
-
class
tests.test_DFA.
TestDfaMinimization
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
test_dfa_minimization_empty_transitions
()[source]¶ Tests a minimization with a dfa without transitions
-
-
class
tests.test_DFA.
TestDfaNonemptinessCheck
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
test_dfa_nonemptiness_check_side_effects
()[source]¶ Tests that the function doesn’t make any side effect on the input
-
test_dfa_nonemptiness_check_wromg_dict_format
()[source]¶ Tests the nonemptines of a dfa dict object with inconsistent data (transitions not present in alphabet). [EXPECTED FAILURE]
-
-
class
tests.test_DFA.
TestDfaProjection
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
test_dfa_projection_full_alphabet_projection
()[source]¶ Tests a dfa projection where all the symbols of the alphabets got projected out
-
test_dfa_projection_words_not_in_alphabet
()[source]¶ Tests a dfa projection with word not present in the dfa alphabet
-
test_dfa_projection_wrong_dict
()[source]¶ Tests a dfa projection where the first input is different from a well formatted dict representing a dfa. [EXPECTED FAILURE]
-
-
class
tests.test_DFA.
TestDfaReachable
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
test_dfa_reachable_already_reachable
()[source]¶ Tests making reachable a DFA even if its already completely reachable
-
test_dfa_reachable_no_accepting_state_reachable
()[source]¶ Tests making reachable a DFA where no accepting state is reached by the initial state
-
test_dfa_reachable_side_effects_copy
()[source]¶ Tests the function doesn’t make side effects if a copy is passed as input
-
-
class
tests.test_DFA.
TestDfaTrimming
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
class
tests.test_DFA.
TestDfaUnion
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
test_dfa_union_side_effects
()[source]¶ Tests that the union function doesn’t make side effects on input DFAs
-
test_dfa_union_wrong_dict_1
()[source]¶ Tests a dict() in input different from a well formatted dict() representing a DFA. [EXPECTED FAILURE]
-
test_dfa_union_wrong_dict_2
()[source]¶ Tests a dict() in input different from a well formatted dict() representing a DFA. [EXPECTED FAILURE]
-
-
class
tests.test_DFA.
TestDfaWordAcceptance
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
test_word_acceptance_wrong_alphabet
()[source]¶ Tests a non correct word, with letters not form the dfa alphabet
-
test_word_acceptance_wrong_dict
()[source]¶ Tests a dict() in input different from a well formatted dict() representing a DFA. [EXPECTED FAILURE]
-