Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p3
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
cse332-20sp
p3
Commits
70b95f31
Commit
70b95f31
authored
4 years ago
by
Nathan Lipiarski
Browse files
Options
Downloads
Patches
Plain Diff
Hopefully improving test feedback
parent
d8c7833e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#339676
failed with stage
in 37 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tests/gitlab/SearcherTests.java
+6
-5
6 additions, 5 deletions
src/tests/gitlab/SearcherTests.java
src/tests/gitlab/TestingInputs.java
+0
-7
0 additions, 7 deletions
src/tests/gitlab/TestingInputs.java
with
6 additions
and
12 deletions
src/tests/gitlab/SearcherTests.java
+
6
−
5
View file @
70b95f31
package
tests.gitlab
;
import
java.util.Arrays
;
import
chess.board.ArrayBoard
;
import
chess.board.ArrayMove
;
import
chess.game.SimpleEvaluator
;
import
cse332.chess.interfaces.Move
;
import
cse332.chess.interfaces.Searcher
;
import
static
org
.
junit
.
Assert
.*
;
import
cse332.chess.interfaces.Searcher
;
import
java.util.Arrays
;
import
static
org
.
hamcrest
.
CoreMatchers
.
hasItem
;
import
static
org
.
junit
.
Assert
.
assertThat
;
public
abstract
class
SearcherTests
{
protected
static
Searcher
<
ArrayMove
,
ArrayBoard
>
STUDENT
;
...
...
@@ -22,7 +23,7 @@ public abstract class SearcherTests {
protected
void
checkResult
(
String
fen
,
String
[]
valid
,
Searcher
<
ArrayMove
,
ArrayBoard
>
searcher
,
int
depth
,
int
cutoff
)
{
ArrayMove
result
=
getBestMove
(
fen
,
searcher
,
depth
,
cutoff
);
assertT
rue
(
Arrays
.
asList
(
valid
)
.
contains
(
result
.
toString
()));
assertT
hat
(
Arrays
.
asList
(
valid
)
,
hasItem
(
result
.
toString
()));
}
protected
void
depth
(
int
d
,
int
c
)
{
...
...
This diff is collapsed.
Click to expand it.
src/tests/gitlab/TestingInputs.java
+
0
−
7
View file @
70b95f31
package
tests.gitlab
;
import
java.io.File
;
import
java.io.FileNotFoundException
;
import
java.util.Random
;
import
java.util.Scanner
;
import
tests.exceptions.InformativeException
;
public
class
TestingInputs
{
public
static
Object
[][]
FENS_TO_TEST
=
new
Object
[][]
{
new
Object
[]{
...
...
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