X-Git-Url: https://projects.mako.cc/source/rubyvote/blobdiff_plain/0e05e46d80413a70fc4aa10bfabbbac048add5a8..11d22a5307695910493266b16718e1ffa201676d:/test/irv_test.rb diff --git a/test/irv_test.rb b/test/irv_test.rb index fa05dc9..d3a57a7 100644 --- a/test/irv_test.rb +++ b/test/irv_test.rb @@ -9,6 +9,7 @@ class TestRunoffVote < Test::Unit::TestCase def test_irv_empty vote_array = Array.new assert_nil InstantRunoffVote.new(vote_array).result.winners[0] + assert_equal(false, InstantRunoffVote.new(vote_array).result.winner?) end def test_irv @@ -59,6 +60,7 @@ class TestRunoffVote < Test::Unit::TestCase def test_irv_logic_empty vote_array = Array.new assert_nil InstantRunoffLogicVote.new(vote_array).result.winners[0] + assert_equal(false, InstantRunoffLogicVote.new(vote_array).result.winner?) end def test_irv_logic1