Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
c8667eba
Commit
c8667eba
authored
Jun 22, 2018
by
Stefan Schuhbaeck
Browse files
fix CI error while testing.
String.format uses locale so 1.0 and 1,0 is different.
parent
c9705945
Pipeline
#58384
passed with stage
in 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VadereState/tests/org/vadere/state/util/SpawnArrayTest.java
View file @
c8667eba
...
...
@@ -47,8 +47,12 @@ public class SpawnArrayTest {
elementBound
=
new
VRectangle
(
0.0
,
0.0
,
1.0
,
1.0
);
spawnArray
=
new
SpawnArray
(
source
,
elementBound
);
assertEquals
(
"expected spawn points don't match"
,
1
,
spawnArray
.
getSpawnPoints
().
length
);
assertEquals
(
""
,
testAppender
.
getLog
().
get
(
0
).
getMessage
(),
"Dimension of Source is to small for at least one dimension to contain designated spawnElement with Bound (1.00 x 1.00) Set to (1 x 1)"
);
String
msg
=
String
.
format
(
"Dimension of Source is to small for at least one"
+
" dimension to contain designated spawnElement with"
+
" Bound (%.2f x %.2f) Set to (%d x %d)"
,
1.0
,
1.0
,
1
,
1
);
assertEquals
(
""
,
testAppender
.
getLog
().
get
(
0
).
getMessage
(),
msg
);
log
.
removeAppender
(
testAppender
);
}
...
...
@@ -63,8 +67,12 @@ public class SpawnArrayTest {
elementBound
=
new
VRectangle
(
0.0
,
0.0
,
1.0
,
1.0
);
spawnArray
=
new
SpawnArray
(
source
,
elementBound
);
assertEquals
(
"expected spawn points don't match"
,
3
,
spawnArray
.
getSpawnPoints
().
length
);
assertEquals
(
""
,
testAppender
.
getLog
().
get
(
0
).
getMessage
(),
"Dimension of Source is to small for at least one dimension to contain designated spawnElement with Bound (1.00 x 1.00) Set to (3 x 1)"
);
String
msg
=
String
.
format
(
"Dimension of Source is to small for at least one"
+
" dimension to contain designated spawnElement with"
+
" Bound (%.2f x %.2f) Set to (%d x %d)"
,
1.0
,
1.0
,
3
,
1
);
assertEquals
(
""
,
testAppender
.
getLog
().
get
(
0
).
getMessage
(),
msg
);
log
.
removeAppender
(
testAppender
);
log
.
removeAppender
(
testAppender
);
}
...
...
Stefan Schuhbaeck
@stsc
mentioned in issue
#74 (closed)
·
Jun 22, 2018
mentioned in issue
#74 (closed)
mentioned in issue #74
Toggle commit list
Write
Preview
Markdown
is supported
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