From: John Dong Date: Wed, 15 Aug 2007 20:32:54 +0000 (-0400) Subject: Merge head X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/d4a19f46105c33aec8ef6ad1c9a50d444241fdcb?hp=389db6f5756bc8a2063f4ab786ea71b4c3b53b8f Merge head --- diff --git a/lib/rubyvote/condorcet.rb b/lib/rubyvote/condorcet.rb index 0b7a306..aaa5044 100644 --- a/lib/rubyvote/condorcet.rb +++ b/lib/rubyvote/condorcet.rb @@ -217,6 +217,7 @@ class CloneproofSSDResult < CondorcetResult def initialize(voteobj=nil) super(voteobj) @winners = self.cpssd() + @winners.delete nil end protected @@ -224,7 +225,7 @@ class CloneproofSSDResult < CondorcetResult def cpssd votes = @election.votes candidates = *@election.candidates - + def in_schwartz_set?(candidate, candidates, transitive_defeats) candidates.each do |challenger| next if candidate == challenger