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
Noric Couderc
JBrainy
Commits
5827c2d3
Commit
5827c2d3
authored
Nov 14, 2021
by
Noric Couderc
Browse files
Fixed tests and commandline
We use the checked features in the right places
parent
36ba84f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/src/main/kotlin/se/lth/cs/commandline/PapiCommandLine.kt
View file @
5827c2d3
...
...
@@ -88,7 +88,7 @@ class PapiCommandLine : CliktCommand() {
PapiTracerRunner
()
}
val
features
=
if
(
normalizeFeatures
)
{
normalize
(
brainyFeatures
())
}
else
{
brainyFeatures
()
}
val
features
=
if
(
normalizeFeatures
)
{
normalize
(
brainyFeatures
())
.
checked
()
}
else
{
brainyFeatures
()
.
checked
()
}
SyntheticBenchmarkExperimentPrinter
(
writer
,
methodOutputFormat
,
numberRuns
,
features
,
...
...
core/src/test/kotlin/ExperimentTest.kt
View file @
5827c2d3
...
...
@@ -80,12 +80,11 @@ class ExperimentTest {
fun
testExperimentBrainyFeatures
()
{
val
bench
=
BCBenchmarkPackage
.
LIST
(
1234
,
100
,
0
,
ArrayList
<
Int
>())
val
features
=
brainyFeatures
()
val
features
=
brainyFeatures
()
.
checked
()
val
exp
=
Experiment
(
10
,
bench
,
features
,
runner
)
val
results
=
exp
.
run
()
for
(
iteration
in
results
)
{
Assertions
.
assertEquals
(
bench
,
iteration
.
benchmark
)
Assertions
.
assertTrue
(
iteration
.
values
.
values
.
all
{
it
>
0
})
...
...
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