electionscience/vse-sim

voterModels fails doctest

dodecatheon opened this issue · 0 comments

$ 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.