示例#1
0
def test_02():
    b1 = Bot('2', (2, 3))
    b2 = Bot('1', (2, 3))
    b3 = Bot('1', (2, 3))
    b4 = Bot('1', (2, 3))

    b1.addValue('3')
    b1.addValue('2')
    b2.addValue('3')
    b2.addValue('3')
    b4.addValue('3')

    assert b1.foundIt(), "Bot didn't find it."
    assert not b2.foundIt(), "Bot didn't find it"
    assert not b3.foundIt()