electionscience / vse-sim

Methods for running simulations to calculate Voter Satisfaction Efficiency (VSE) of various voting systems in various conditions.
https://electionscience.github.io/vse-sim
57 stars 17 forks source link

voterModels fails doctest #25

Open dodecatheon opened 6 years ago

dodecatheon commented 6 years ago
$ python -m doctest voterModels.py
**********************************************************************
File "/home/ted/python/my-vse-sim/voterModels.py", line 269, in voterModels.DimModel
Failed example:
    dm(2,4)
Expected:
    [(4.25, 0.0, 1.25, 4.25), (2.0, 1.25, 0.0, 2.0)]
Got:
    [(-1.8439088914585775, -0.0, -1.0, -1.8439088914585775), (-1.2649110640673518, -1.0, -0.0, -1.2649110640673518)]
**********************************************************************
1 items had failures:
   1 of   3 in voterModels.DimModel
***Test Failed*** 1 failures.