def test_add_anything_else():
    fsm1 = fsm(alphabet={'a', anything_else}, states={0, 1}, initial=0, finals={1}, map={0: {anything_else: 1}})
    fsm2 = fsm(alphabet={'b', anything_else}, states={0, 1}, initial=0, finals={1}, map={0: {anything_else: 1}})
    assert (fsm1 + fsm2).accepts('ba')
def test_add_anything_else():
    fsm1 = fsm(alphabet={'a', anything_else}, states={0, 1}, initial=0, finals={1}, map={0: {anything_else: 1}})
    fsm2 = fsm(alphabet={'b', anything_else}, states={0, 1}, initial=0, finals={1}, map={0: {anything_else: 1}})
    assert (fsm1 + fsm2).accepts('ba')