Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SAT4J
sat4j
Commits
afab137a
Commit
afab137a
authored
Jan 04, 2018
by
Daniel Le Berre
Browse files
Updated test case to make it really useful (thanks STAMP).
parent
09e9173e
Pipeline
#567
passed with stages
in 29 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
org.sat4j.core/src/test/java/org/sat4j/BugSAT26.java
View file @
afab137a
...
...
@@ -29,6 +29,7 @@
*******************************************************************************/
package
org.sat4j
;
import
static
org
.
junit
.
Assert
.
assertFalse
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
java.io.FileNotFoundException
;
...
...
@@ -61,15 +62,17 @@ public class BugSAT26 {
}
@Test
public
void
testConsecutiveCallToSolver
()
throws
ContradictionException
,
TimeoutException
{
public
void
testConsecutiveCallToSolver
()
throws
ContradictionException
,
TimeoutException
{
assertTrue
(
this
.
xplain
.
isSatisfiable
());
int
i
=
0
;
while
(
i
<
5
)
{
VecInt
assumption
=
new
VecInt
();
assumption
.
push
(
1187
);
IConstr
constr
=
this
.
xplain
.
addClause
(
assumption
);
assertFalse
(
this
.
xplain
.
isSatisfiable
());
this
.
xplain
.
removeConstr
(
constr
);
assertTrue
(
this
.
xplain
.
isSatisfiable
());
i
++;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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