Beispiel #1
0
def test_minimum_delay():
    assert letter_invader.delay(100, 10) == .1
Beispiel #2
0
def test_delay_second_state():
    assert letter_invader.delay(23, 10) == .8
Beispiel #3
0
def test_delay_reduce_delay():
    assert letter_invader.delay(10, 10) == .9
Beispiel #4
0
def test_delay_no_change():
    assert letter_invader.delay(11, 10) == .9
Beispiel #5
0
def test_delay_first_state():
    assert letter_invader.delay(2, 10) == 1