acc: preserve input order in parse_acc_code()

* src/twa/acc.cc: Here.
* src/tests/acc.test: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2015-04-15 23:59:12 +02:00
parent b488157957
commit 3efeacb61b
2 changed files with 13 additions and 7 deletions

View file

@ -78,10 +78,10 @@ t
f
Fin(2)
Inf(2)
Inf(2) | Fin(2)
Fin(2) | Inf(2)
Fin(2) & Inf(2)
Fin(3) | (Fin(2) & Inf(1)) | Fin(0)
Fin(3) | (Fin(2) & Inf(1)) | Fin(0)
Fin(0) | (Fin(2) & Inf(1)) | Fin(3)
Fin(0) | (Fin(2) & Inf(1)) | Fin(3)
EOF
run 0 ../acc | tee stdout