def test5(): list = [1,2,3,4,5,6,6,8,9,9,11,11,11] honestnbr = precision.findmajority(list) if honestnbr != 11: print "error in test5"
def test1(): list = [1,1,1,1, 2,2,2,2, 3,3,3,3] honestnbr = precision.findmajority(list) if honestnbr != 1: print "error in test1"
def test4(): list = [1,2,3,4,5,6,7,8,9,10,11,12,13] honestnbr = precision.findmajority(list) if honestnbr != 1: print "error in test4"