]> projects.mako.cc - rubyvote/blobdiff - test/condorcet_test.rb
Created victories_and_ties method for table use.
[rubyvote] / test / condorcet_test.rb
index 9d10169011a93d6d0f06746fee080eabc1a8c260..b2d5dc46ad9864d4787c78596551aae1cfac2ab9 100644 (file)
@@ -8,6 +8,7 @@ class TestCondorcetVote < Test::Unit::TestCase
   def test_condorcet_empty
     vote_array =  [[]]
     assert_nil PureCondorcetVote.new(vote_array).result.winners[0]
+    assert_equal(false, PureCondorcetVote.new(vote_array).result.winner?)
   end
 
   def test_condorcet
@@ -34,6 +35,7 @@ class TestCondorcetVote < Test::Unit::TestCase
   def test_ssd_empty
     vote_array = [[]]
     assert_nil  CloneproofSSDVote.new(vote_array).result.winners[0]
+    assert_equal(false, CloneproofSSDVote.new(vote_array).result.winner?)
   end
   
   def test_ssd

Benjamin Mako Hill || Want to submit a patch?