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:
Alexandre Duret-Lutz 2023-07-27 14:28:15 +02:00
parent 95e3bb815c
commit 7358a26492
7 changed files with 54 additions and 8 deletions

View file

@ -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]
a | [*0]
b[*2..3]
1
{ab}[*][:*]
b
a
[*0]
EOF
diff formulae expected