Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
WestCoastSwing
/
RelativePlacement
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
b9697822
...
b96978220c79ca0538cf6686dd56ca5de04c335d
authored
2016-12-07 01:12:22 +0100
by
Vincent Peybernes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
#8
Improve result test of election - add display matrix job
1 parent
6594f290
Pipeline
#18
for
b9697822
failed
in 26 seconds
Changes
1
Pipelines
1
Builds
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
tests/node/displayResults.js
tests/node/displayResults.js
View file @
b969782
...
...
@@ -4,6 +4,7 @@
var
RelativePlacement
=
require
(
'../../lib/relative-placement'
);
var
data
=
require
(
'./results_data.json'
);
var
util
=
require
(
'util'
);
var
exitCode
=
0
;
console
.
log
(
'############################'
);
console
.
log
(
'# Details of result matrix #'
);
...
...
@@ -37,6 +38,7 @@ data.forEach((testCase, num) => {
log
.
push
(
expected
[
place
]);
log
.
push
(
'\t|\t'
);
if
(
candidateName
!=
expected
[
place
])
exitCode
=
1
;
(
candidateName
!=
expected
[
place
])
?
log
.
push
(
'*'
)
:
log
.
push
(
' '
);
log
.
push
(
candidateName
);
log
.
push
(
'\t'
);
...
...
@@ -59,6 +61,8 @@ data.forEach((testCase, num) => {
console
.
log
(
''
);
});
process
.
exit
(
exitCode
);
/**
* @param {TestData} testData
* @return {String[][]}
...
...
Please
register
or
sign in
to post a comment