Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
c160eba5
Commit
c160eba5
authored
Aug 04, 2003
by
Alexandre Duret-Lutz
Browse files
* wrap/python/tests/ltlparse.py: New file.
* wrap/python/tests/Makefile.am (TESTS): Add it.
parent
d21c64d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
c160eba5
2003-08-04 Alexandre Duret-Lutz <aduret@src.lip6.fr>
* wrap/python/tests/ltlparse.py: New file.
* wrap/python/tests/Makefile.am (TESTS): Add it.
2003-08-01 Alexandre Duret-Lutz <aduret@src.lip6.fr>
* wrap/python/buddy.i: New file.
...
...
wrap/python/tests/Makefile.am
View file @
c160eba5
...
...
@@ -6,4 +6,5 @@ check_SCRIPTS = run
TESTS
=
\
ltlsimple.py
\
ltlparse.py
\
bddnqueen.py
\ No newline at end of file
wrap/python/tests/ltlparse.py
0 → 100755
View file @
c160eba5
import
sys
import
ltihooks
import
spot
e
=
spot
.
default_environment
.
instance
()
p
=
spot
.
empty_parse_error_list
()
l
=
[
'GFa'
,
'a U (((b)) xor c)'
,
'!(FFx <=> Fx)'
,
'a \/ a \/ b \/ a \/ a'
];
for
str1
in
l
:
f
=
spot
.
parse
(
str1
,
p
,
e
,
0
)
if
spot
.
format_parse_errors
(
spot
.
get_cout
(),
str1
,
p
):
sys
.
exit
(
1
)
str2
=
str
(
f
)
spot
.
destroy
(
f
)
print
str2
# Try to reparse the stringified formula
f
=
spot
.
parse
(
str2
,
p
,
e
)
if
spot
.
format_parse_errors
(
spot
.
get_cout
(),
str2
,
p
):
sys
.
exit
(
1
)
print
f
spot
.
destroy
(
f
)
assert
spot
.
atomic_prop
.
instance_count
()
==
0
assert
spot
.
binop
.
instance_count
()
==
0
assert
spot
.
unop
.
instance_count
()
==
0
assert
spot
.
multop
.
instance_count
()
==
0
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment