prefvote

PrefVote test suite

PrefVote is designed for multiple programming language implementations using a common test suite. The test suite consists of “black box” test specs used across all languages, plus “white box” unit tests within each language’s source code directory. The test harness collects Test Anything Protocol (TAP) data from each language’s unit tests to report the results.

Scripts in the test directory

Progress on the test suite

Numbers in each cell are test cases planned/passed/failed.

language/set Core STV Schulze RankedPairs KR2 total
Perl whitebox 525/525/0 193/193/0 183/183/0 139/139/0 133/133/0 1173/1173/0
Rust whitebox 𝟬 𝟬 𝟬 𝟬 𝟬 0/0/0
Perl blackbox 8322/8322/0 9486/9486/0 10425/10425/0 9093/9093/0 8808/8808/0 46134/46134/0
Rust blackbox 𝟬 𝟬 𝟬 𝟬 𝟬 0/0/0
total 8847/8847/0 9679/9679/0 10608/10608/0 9232/9232/0 8941/8941/0 47307/47307/0

Black-box test data files

Randomly-generated black-box test data files and their run results for each voting method can be found in these overview files (generated by the test-overview script, which also calls acr-compare and vote-count).

Column headings in result overviews: