randltl: fix option --allow-dups

* bin/randltl.cc: here
* tests/core/rand.test: test it
* NEWS: document it
This commit is contained in:
Maximilien Colange 2018-05-23 10:58:32 +02:00
parent cde0977ef8
commit 1a4117a07f
3 changed files with 11 additions and 1 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2014, 2015, 2017 Laboratoire de Recherche et
# Copyright (C) 2014, 2015, 2017, 2018 Laboratoire de Recherche et
# Développement de l'Epita (LRDE).
#
# This file is part of Spot, a model checking library.
@ -138,3 +138,10 @@ diff test-cmp.ltl test-all.ltl
randltl 2 --ltl-prio=X 2>stderr && exit 1
grep 'failed to parse LTL priorities near X' stderr
randltl -L --allow-dups -n2 1 > out
cat >expected <<EOF
0
0
EOF
diff out expected