@@ -32,10 +32,9 @@ def test_10_candidates_5_winners(self):
3232 SchulzeSTV (input , required_winners = 5 , ballot_notation = "ranking" ).as_dict ()
3333
3434 # Run tests
35- print "10 candidates 5 winners took %d seconds" % (time .time () - startTime )
3635 self .assert_ (time .time () - startTime < 8 )
3736
38- # This test looks at few graph notes , but large completion patterns. With
37+ # This test looks at few graph nodes , but large completion patterns. With
3938 # 10 candidates and 9 winners, we're looking at 3^9 (19683) patterns to
4039 # consider.
4140 def test_10_candidates_9_winners (self ):
@@ -50,7 +49,6 @@ def test_10_candidates_9_winners(self):
5049 SchulzeSTV (input , required_winners = 9 , ballot_notation = "ranking" ).as_dict ()
5150
5251 # Run tests
53- print "10 candidates 9 winners took %d seconds" % (time .time () - startTime )
5452 self .assert_ (time .time () - startTime < 2 )
5553
5654 # This test ensures that if you request the same number of winners as there
@@ -64,8 +62,7 @@ def test_10_candidates_10_winners(self):
6462 { "count" :1 , "ballot" :{"A" :3 , "B" :2 , "C" :3 , "D" :1 , "E" :9 , "F" :9 , "G" :9 , "H" :9 , "I" :9 , "J" :9 }},
6563 { "count" :1 , "ballot" :{"A" :9 , "B" :9 , "C" :9 , "D" :9 , "E" :1 , "F" :9 , "G" :9 , "H" :9 , "I" :9 , "J" :9 }}
6664 ]
67- schulze_stv = SchulzeSTV (input , required_winners = 10 , ballot_notation = "ranking" )
68- output = schulze_stv .as_dict ()
65+ output = SchulzeSTV (input , required_winners = 10 , ballot_notation = "ranking" ).as_dict ()
6966
7067 # Run tests
7168 self .assertAlmostEqual (startTime , time .time (), 1 )
0 commit comments