dot: fix 'g' with a Mealy machine
* spot/twaalgos/dot.cc: here * tests/python/mealy.py: add test
This commit is contained in:
parent
27816ea438
commit
4d2c096ec0
2 changed files with 21 additions and 3 deletions
|
|
@ -611,3 +611,18 @@ State: 1
|
|||
|
||||
res = spot.reduce_mealy(aut, True)
|
||||
tc.assertEqual(res.to_str(), exp)
|
||||
|
||||
exp = """digraph "" {
|
||||
rankdir=LR
|
||||
node [shape="circle"]
|
||||
I [label="", style=invis, width=0]
|
||||
I -> 0
|
||||
0 [label="0"]
|
||||
0 -> 1 [label=""]
|
||||
0 -> 1 [label=""]
|
||||
0 -> 1 [label=""]
|
||||
1 [label="1"]
|
||||
1 -> 1 [label=""]
|
||||
}
|
||||
"""
|
||||
tc.assertEqual(res.to_str("dot", "g"), exp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue