From 626117819ecebdcd6188ce4a93acc3806b09c33c Mon Sep 17 00:00:00 2001 From: Cory Dickson Date: Mon, 13 Sep 2021 15:28:32 -0400 Subject: [PATCH] Fix off by one error in test suites --- integrationTests/ts/__tests__/suites.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/integrationTests/ts/__tests__/suites.json b/integrationTests/ts/__tests__/suites.json index 529ec47ff5..5670ca0e3e 100644 --- a/integrationTests/ts/__tests__/suites.json +++ b/integrationTests/ts/__tests__/suites.json @@ -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", @@ -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", @@ -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 } ] }