#filter_out and PureCondorcet weren't getting along well for sparse elections
[rubyvote] / test / condorcet_test.rb
index 82ff292..f0dd1cc 100644 (file)
@@ -98,4 +98,13 @@ class TestCondorcetVote < Test::Unit::TestCase
     assert_equal [[78]], result.get_full_results
   end
 
+  def test_ssd_sparse
+    vote_array = Array.new
+    vote_array << ['B', 'D']
+    vote_array << ['A', 'C']
+    vote_array << ['E', 'C']
+    result = CloneproofSSDVote.new(vote_array).result
+    assert_equal 5, result.get_full_results.flatten.size
+  end
+
 end

Benjamin Mako Hill || Want to submit a patch?