improve coverage of LaTeX/utf8 printers for SERE
* bin/common_output.cc, bin/common_output.hh, bin/randltl.cc: Adjust so that running "randltl -S" use the SERE flavor of the spot/latex/utf8 formula printers. * tests/core/latex.test, tests/core/utf8.test, tests/python/ltlparse.py: Add more test cases.
This commit is contained in:
parent
95e3bb815c
commit
7358a26492
7 changed files with 54 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2013, 2015 Laboratoire de Recherche et Développement
|
||||
# de l'Epita (LRDE).
|
||||
# Copyright (C) 2013, 2015, 2023 Laboratoire de Recherche et
|
||||
# Développement de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
#
|
||||
|
|
@ -50,7 +50,8 @@ cat <<\EOF
|
|||
EOF
|
||||
( ltlfilt --latex input --format='\texttt{%F:%L} & $%f$ \\';
|
||||
genltl --go-theta=1..3 --latex \
|
||||
--format='\texttt{--%F:%L} & $%f$ \\')
|
||||
--format='\texttt{--%F:%L} & $%f$ \\';
|
||||
randltl -S -n10 --latex 2 --format='\texttt{random %l} & $%f$ \\')
|
||||
cat <<\EOF
|
||||
\end{tabular}
|
||||
\end{document}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2012, 2013, 2015, 2016, 2019 Laboratoire de Recherche et
|
||||
# Copyright (C) 2012, 2013, 2015, 2016, 2019, 2023 Laboratoire de Recherche et
|
||||
# Développement de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -70,3 +70,18 @@ ltlfilt -8 -f 'X[!]a' >out
|
|||
diff in out
|
||||
ltlfilt -8 -F in >out
|
||||
diff in out
|
||||
|
||||
randltl --sere -8 --seed 0 --tree-size 8 a b c -n 10 > formulae
|
||||
cat >expected <<EOF
|
||||
0
|
||||
b:{1 | [*0]}[:*1..3]
|
||||
c̅
|
||||
a | [*0]
|
||||
b[*2..3]
|
||||
1
|
||||
{a∨b}[*][:*]
|
||||
b
|
||||
a
|
||||
[*0]
|
||||
EOF
|
||||
diff formulae expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue