4 require 'rubyvote/election'
5 require 'rubyvote/positional'
7 class TestPositionalVote < Test::Unit::TestCase
10 vote_array = Array.new
11 assert_nil BordaVote.new(vote_array).result.winners[0]
15 vote_array = Array.new
16 2.times {vote_array << "BAC".split("")}
17 3.times {vote_array << "ABC".split("")}
18 3.times {vote_array << "CBA".split("")}
20 assert_equal( "B", BordaVote.new(vote_array).result.winners[0] )