tests: exercise --stats='%[v]c %[IW]c' and friends

* tests/core/scc.test: Here.
This commit is contained in:
Alexandre Duret-Lutz 2018-05-18 18:13:29 +02:00
parent 47974cd004
commit 2e90460b8a

View file

@ -1,7 +1,7 @@
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2009, 2015, 2017 Laboratoire de Recherche et Developpement de
# l'Epita
# Copyright (C) 2009, 2015, 2017, 2018 Laboratoire de Recherche et
# Developpement de l'Epita
#
# This file is part of Spot, a model checking library.
#
@ -112,8 +112,8 @@ diff out ref
# From issue #271, reported by Henrich Lauko.
cat >in.hoa <<EOF
HOA: v1
States: 4
Start: 2
States: 5
Start: 4
AP: 2 "p1" "p0"
acc-name: generalized-co-Buchi 2
Acceptance: 2 Fin(0)|Fin(1)
@ -136,9 +136,11 @@ State: 3 {1}
[0&!1] 1
[!0&1] 2
[!0&!1] 3
State: 4
[t] 2
--END--
EOF
test 2 = `autfilt --stats=%[a]c in.hoa`
test '2 1 1 2' = "`autfilt --stats='%[a]c %[A]c %[v]c %[V]c' in.hoa`"
# From issue #284, reported by Juraj Major.
cat >in.hoa <<EOF
@ -186,9 +188,14 @@ State: 0
[!0] 0 {4 2}
--END--
EOF
autfilt --stats='%[a]c' in.hoa >out
autfilt --stats='%[a]c %[iw]c %[IW]c' in.hoa >out
cat >exp <<EOF
1
1
1 3 1
1 0 1
EOF
diff out exp
autfilt --stats='%[I]c' in.hoa 2>err && exit 1
grep "unknown option 'I" err
autfilt --stats='%[i]c' in.hoa 2>err && exit 1
grep "unknown option 'i" err