Skip to content

Commit

Permalink
Fix off by one error in test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
corydickson committed Sep 13, 2021
1 parent 80a066b commit 6261178
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions integrationTests/ts/__tests__/suites.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"description": "Full tree, 4 full batches, no bribers",
"numVotesPerUser": 1,
"numUsers": 16,
"expectedTally": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0],
"expectedTally": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0],
"expectedSpentVoiceCredits": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0],
"expectedTotalSpentVoiceCredits": 17
"expectedTotalSpentVoiceCredits": 16
},
{
"name": "Happy path 2",
Expand All @@ -33,9 +33,9 @@
"numUsers": 3,
"numVotesPerUser": 2,
"bribers": { "0": { "voteOptionIndices": [0,1] }, "1": { "voteOptionIndices": [0,1]}},
"expectedTally": [0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"expectedSpentVoiceCredits": [0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"expectedTotalSpentVoiceCredits": 2
"expectedTally": [0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"expectedSpentVoiceCredits": [0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"expectedTotalSpentVoiceCredits": 3
},
{
"name": "Happy path for user key change",
Expand All @@ -62,9 +62,9 @@
"1": { "voteOptionIndex": 1, "voteWeight": 5, "valid": true }
}
},
"expectedTally": [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"expectedSpentVoiceCredits": [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"expectedTotalSpentVoiceCredits": 1
"expectedTally": [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"expectedSpentVoiceCredits": [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"expectedTotalSpentVoiceCredits": 2
}
]
}

0 comments on commit 6261178

Please sign in to comment.