Commit 31f5ea75 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

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.
parent a39ebcc8
......@@ -425,6 +425,7 @@ static const argp_option options[] =
{ "%O,%D", 0, 0, OPTION_DOC | OPTION_NO_USAGE,
"the automaton is output as either (%O) HOA/never claim/LBTT, or (%D) "
"in LTL2DSTAR's format", 0 },
{ "%%", 0, 0, OPTION_DOC | OPTION_NO_USAGE, "a single %", 0 },
{ 0, 0, 0, 0,
"If either %l, %L, or %T are used, any input formula that does "
"not use LBT-style atomic propositions (i.e. p0, p1, ...) will be "
......
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment