This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FiniteStateMachine: add failing doctests: non-hashable colors
The following behaviour is undesired (docstrings says that colors are tuples of the colors of the constituent states, but this is not the case and leads to problems in Automaton.determinisation): sage: A = Automaton([[0, 0, 0]], initial_states=[0]) sage: B = A.product_FiniteStateMachine(A, ....: lambda t1, t2: (0, None)) sage: B.states()[0].color [None, None] sage: B.determinisation() Traceback (most recent call last): ... TypeError: unhashable type: 'list' sage: A = Automaton([[0, 0, 0]], initial_states=[0]) sage: B = A.composition(A, algorithm='explorative') sage: B.states()[0].color [None, None] sage: B.determinisation() Traceback (most recent call last): ... TypeError: unhashable type: 'list' Inserted doctests documenting this undesired behaviour.
- Loading branch information