From 2a71517f5c663bd1c2ec6b0115071ebae9026cd0 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Tue, 25 Nov 2014 14:28:03 +0100 Subject: [PATCH] hoa: more coverage for the parser * src/tgbatest/hoaparse.test: More tests. --- src/tgbatest/hoaparse.test | 52 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/src/tgbatest/hoaparse.test b/src/tgbatest/hoaparse.test index 10a1f2ecc..082e68fb4 100755 --- a/src/tgbatest/hoaparse.test +++ b/src/tgbatest/hoaparse.test @@ -93,13 +93,15 @@ AP: 1 "a" Acceptance: 1 Inf(0) --BODY-- State: 0 {0} -[0] 0 +[2] 0 State: 0 {0} [t] 0 --END-- EOF expecterr input <input <input <output.err +grep 'foob:1.1: Cannot open file foob' output.err + # Make sure we can read multiple automata from stdin ../../bin/ltl2tgba 'a U b' 'GFa' --hoa | grep -v '^name:' > input ../../bin/autfilt --hoa < input | ../../bin/autfilt --hoa > output diff input output + + + +# Parse something in debug mode, to exercise the %printer +cat >input < output.err +grep -- "--BODY--" output.err +grep "identifier.*v1" output.err