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
881509a8
Commit
881509a8
authored
Mar 09, 2022
by
Daniel Le Berre
Browse files
fix test case with Optional handling in createSolverByName().
parent
a5819919
Pipeline
#20147
failed with stages
in 16 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
org.sat4j.pb/src/test/java/org/sat4j/pb/BugSAT34.java
View file @
881509a8
...
...
@@ -62,9 +62,11 @@ public class BugSAT34 {
for
(
String
name
:
SolverFactory
.
instance
().
solverNames
())
{
if
(!
"DimacsOutput"
.
equals
(
name
)
&&
!
"OPBStringSolver"
.
equals
(
name
)
&&
!
name
.
contains
(
"DetectCards"
))
{
solvers
.
add
(
new
Object
[]
{
SolverFactory
.
instance
().
createSolverByName
(
name
),
name
});
solvers
.
add
(
new
Object
[]
{
SolverFactory
.
instance
()
.
createSolverByName
(
name
).
orElseThrow
(),
name
});
}
}
return
solvers
;
...
...
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