Page MenuHomePhabricator

Add test cases for STV [M]
Closed, ResolvedPublic

Description

Motivation

This task is to collect and add different test cases to test STV in the code.

Acceptance criteria
  • Come up with test cases
  • Add them to the the codebase to test STV

Presumably the edge cases come up as QA happens but at the very least, the STVTallierTest.php should exist and have a testSTVTally function that uses a dataProvider to ingest an array of votes and has an expected output detailing the tally results.

Event Timeline

Niharika triaged this task as Medium priority.Jun 9 2021, 4:04 PM
Niharika created this task.
ARamirez_WMF renamed this task from Add test cases for STV to Add test cases for STV [M].Jun 9 2021, 4:39 PM

Change 710245 had a related patch set uploaded (by TsepoThoabala; author: TsepoThoabala):

[mediawiki/extensions/SecurePoll@master] Add test cases for STV

https://gerrit.wikimedia.org/r/710245

Change 710245 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Add test cases for STV

https://gerrit.wikimedia.org/r/710245