* src/ltlvisit/tostring.cc (to_spin_string_visitor,
to_string_visitor): Do not parenthesize the top-level formula. * tgbatest/explicit.test, tgbatest/explpro2.test, tgbatest/explpro3.test, tgbatest/explprod.test, tgbatest/readsave.test, tgbatest/tgbaread.test, tgbatest/tripprod.test: Adjust expected output. * sanity/style.test: Fix regexes to catch an error seen in tostring.cc.
This commit is contained in:
parent
6f4ab3af6c
commit
35ef738ff9
10 changed files with 72 additions and 43 deletions
|
|
@ -33,28 +33,28 @@ while read file; do
|
|||
|
||||
sed 's,//.*,,' < $file > $tmp
|
||||
|
||||
grep ' if(' $tmp &&
|
||||
grep '[ ]if(' $tmp &&
|
||||
diag 'Missing space after "if"'
|
||||
|
||||
grep ' if (.*).*{' $tmp &&
|
||||
grep '[ ]if (.*).*{' $tmp &&
|
||||
diag 'Opening { should be on its own line.'
|
||||
|
||||
grep ' while(' $tmp &&
|
||||
grep '[ ]while(' $tmp &&
|
||||
diag 'Missing space after "while"'
|
||||
|
||||
grep ' while (.*).*{' $tmp &&
|
||||
grep '[ ]while (.*).*{' $tmp &&
|
||||
diag 'Opening { should be on its own line.'
|
||||
|
||||
grep ' for(' $tmp &&
|
||||
grep '[ ]for(' $tmp &&
|
||||
diag 'Missing space after "for"'
|
||||
|
||||
grep ' for (.*).*{' $tmp &&
|
||||
grep '[ ]for (.*).*{' $tmp &&
|
||||
diag 'Opening { should be on its own line.'
|
||||
|
||||
grep ' switch(' $tmp &&
|
||||
diag 'Missing space after "for"'
|
||||
grep '[ ]switch(' $tmp &&
|
||||
diag 'Missing space after "switch"'
|
||||
|
||||
grep ' switch (.*).*{' $tmp &&
|
||||
grep '[ ]switch (.*).*{' $tmp &&
|
||||
diag 'Opening { should be on its own line.'
|
||||
|
||||
grep '( ' $tmp &&
|
||||
|
|
@ -69,10 +69,10 @@ while read file; do
|
|||
grep ',[(a-zA-Z+=_!]' $tmp &&
|
||||
diag 'Space after coma.'
|
||||
|
||||
grep '[^ \t\n]&&[^ \t\n]' $tmp &&
|
||||
grep '[^ ]&&[^ ]' $tmp &&
|
||||
diag 'Space arround binary operators.'
|
||||
|
||||
grep '[^ \t\n]||[^ \t\n]' $tmp &&
|
||||
grep '[^ ]||[^ ]' $tmp &&
|
||||
diag 'Space arround binary operators.'
|
||||
|
||||
$fail && echo "$file" >>failures
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue