Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cadbiom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIGNET Pierre
cadbiom
Commits
e7b611f1
"src/z_spm.h" did not exist on "0ee5d054d9794218d0de1d394e3e7e3d657a9a1e"
Commit
e7b611f1
authored
5 years ago
by
VIGNET Pierre
Browse files
Options
Downloads
Patches
Plain Diff
[lib] Tests: Sync with new solver
parent
fd001e42
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
library/test/test_solver_statements.py
+18
-4
18 additions, 4 deletions
library/test/test_solver_statements.py
with
18 additions
and
4 deletions
library/test/test_solver_statements.py
+
18
−
4
View file @
e7b611f1
...
...
@@ -6,9 +6,11 @@ from __future__ import print_function
# Standard imports
import
pytest
from
packaging
import
version
# Custom imports
from
pycryptosat
import
Solver
from
pycryptosat
import
__version__
as
solver_version
#from pyCryptoMS import CryptoMS
...
...
@@ -188,7 +190,10 @@ def test_statement1b(feed_statement1):
feed_statement1
[
2
],
feed_statement1
[
3
],
feed_statement1
[
4
])
# Check number of variables
found
=
solv
.
nb_vars
()
if
version
.
parse
(
solver_version
)
<
version
.
parse
(
"
5.6.9
"
):
found
=
solv
.
nb_vars
()
else
:
found
=
solv
.
nb_vars
assert
feed_statement1
[
5
]
==
found
# Solve
...
...
@@ -210,7 +215,10 @@ def test_statement2b(feed_statement2):
feed_statement2
[
2
],
feed_statement2
[
3
],
feed_statement2
[
4
])
# Check number of variables
found
=
solv
.
nb_vars
()
if
version
.
parse
(
solver_version
)
<
version
.
parse
(
"
5.6.9
"
):
found
=
solv
.
nb_vars
()
else
:
found
=
solv
.
nb_vars
assert
feed_statement2
[
5
]
==
found
# Solve
...
...
@@ -232,7 +240,10 @@ def test_statement3b(feed_statement3):
feed_statement3
[
2
],
feed_statement3
[
3
],
feed_statement3
[
4
])
# Check number of variables
found
=
solv
.
nb_vars
()
if
version
.
parse
(
solver_version
)
<
version
.
parse
(
"
5.6.9
"
):
found
=
solv
.
nb_vars
()
else
:
found
=
solv
.
nb_vars
assert
feed_statement3
[
5
]
==
found
# Solve
...
...
@@ -254,7 +265,10 @@ def test_statement4b(feed_statement4):
feed_statement4
[
2
],
feed_statement4
[
3
],
feed_statement4
[
4
])
# Check number of variables
found
=
solv
.
nb_vars
()
if
version
.
parse
(
solver_version
)
<
version
.
parse
(
"
5.6.9
"
):
found
=
solv
.
nb_vars
()
else
:
found
=
solv
.
nb_vars
assert
feed_statement4
[
5
]
==
found
# Solve
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment