def test_reverse_abc():
    abc = fsm(alphabet={'a', 'b', 'c'}, states={0, 1, 2, 3, None}, initial=0, finals={3}, map={0: {'a': 1, 'b': None, 'c': None}, 1: {'a': None, 'b': 2, 'c': None}, 2: {'a': None, 'b': None, 'c': 3}, 3: {'a': None, 'b': None, 'c': None}, None: {'a': None, 'b': None, 'c': None}})
    cba = reversed(abc)
    assert cba.accepts('cba')
def test_reverse_abc():
    abc = fsm(alphabet={'a', 'b', 'c'}, states={0, 1, 2, 3, None}, initial=0, finals={3}, map={0: {'a': 1, 'b': None, 'c': None}, 1: {'a': None, 'b': 2, 'c': None}, 2: {'a': None, 'b': None, 'c': 3}, 3: {'a': None, 'b': None, 'c': None}, None: {'a': None, 'b': None, 'c': None}})
    cba = reversed(abc)
    assert cba.accepts('cba')