def testLazyVickerey3(self): bids = [4.5, 2.3, 3, 0, 4, 5, 2] reserves = [ 10, 2, 3.1, 0, 10, 1, 6] expected = ([ 0, 0, 0, 0, 0, 1, 0], [ 0, 0, 0, 0, 0,4.5,0]) #TODO is the expected value correct? obtained = lazyVickrey(bids,reserves) self.assertEqual(expected, obtained, "Expected " + str(expected) + " but obtained " + str(obtained) )
def testLazyVickerey1(self): bids = [10,5] reserves = [1,10] expected = ([1,0],[5,0]) obtained = lazyVickrey(bids,reserves) self.assertEqual(expected, obtained, "Expected " + str(expected) + " but obtained " + str(obtained) )