コード例 #1
0
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"
コード例 #2
0
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"
コード例 #3
0
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"