X-Git-Url: https://projects.mako.cc/source/rubyvote/blobdiff_plain/21e8998e39385a5cfd90ef597ccdbd760227baa7..254fd48da81d8e3b0938c38db89b9cd2fd6a98fe:/test/positional_test.rb?ds=inline diff --git a/test/positional_test.rb b/test/positional_test.rb index 1dc6c12..bb81c7e 100644 --- a/test/positional_test.rb +++ b/test/positional_test.rb @@ -5,7 +5,13 @@ require 'rubyvote/election' require 'rubyvote/positional' class TestPositionalVote < Test::Unit::TestCase - + + def test_borda_empty + vote_array = Array.new + assert_nil BordaVote.new(vote_array).result.winners[0] + assert_equal(false, BordaVote.new(vote_array).result.winner?) + end + def test_borda vote_array = Array.new 2.times {vote_array << "BAC".split("")}