Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jon Shahen
vagabond
Commits
f72281e6
Commit
f72281e6
authored
May 21, 2016
by
Jonathan Shahen
Browse files
HOTFIX: forgot to add the JUint test file for PlacementMapFile on the last commit
parent
6f10cf51
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vagabond/testing/PlacementMapFileTests.java
0 → 100644
View file @
f72281e6
package
vagabond.testing
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
java.io.File
;
import
java.io.IOException
;
import
org.junit.Test
;
import
vagabond.pieces.EpochHistory
;
import
vagabond.pieces.PlacementMap
;
import
vagabond.placement.PlacementMapFile
;
public
class
PlacementMapFileTests
{
@Test
public
void
testReadEpochHistory
()
throws
IOException
{
EpochHistory
eh
=
PlacementMapFile
.
readEpochHistory
(
new
File
(
"tests/placementMapHistory.csv"
));
PlacementMap
pControl
=
PlacementMapExamples
.
nomadSubOptimalRCPlacement
();
assertEquals
(
5
,
eh
.
size
());
assertTrue
(
pControl
.
equals
(
eh
.
_latestPlacementMap
));
}
@Test
public
void
testReadPlacementMap
()
throws
IOException
{
PlacementMap
pTest
=
PlacementMapFile
.
readPlacementMap
(
"tests/nomadSubOptimalRCPlacement.csv"
);
PlacementMap
pControl
=
PlacementMapExamples
.
nomadSubOptimalRCPlacement
();
assertTrue
(
pControl
.
equals
(
pTest
));
}
}
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