bin: document %% for ltldo and ltlcross

I had no idea this was working...
Reported by Joachim Klein.

* src/bin/common_trans.cc: Document it.
* src/tests/ltlcross3.test: Test it.
This commit is contained in:
Alexandre Duret-Lutz 2015-07-16 19:55:31 +02:00
parent a39ebcc8cc
commit 31f5ea75b2
2 changed files with 8 additions and 2 deletions

View file

@ -161,6 +161,11 @@ test 5 = `wc -l < out.csv`
check_csv out.csv
# Diagnose empty automata
run 1 ../../bin/ltlcross ': %f >%O' -f a 2>stderr
# Diagnose empty automata, and make sure %% is correctly replaced by %
run 1 ../../bin/ltlcross ': %f >%O; echo %%>foo' -f a 2>stderr
test 2 = `grep -c 'error: empty output.' stderr`
cat foo
cat >expected<<EOF
%
EOF
diff foo expected