Exemplo n.º 1
0
Arquivo: test.py Projeto: Ghalko/fade
def test_negative(start):
	f = Fade(10)
	ans = f.find_int(10, 255, start)
	assert len(ans) == 11
	assert ans[-1] == start
Exemplo n.º 2
0
Arquivo: test.py Projeto: Ghalko/fade
def test_start(start):
	f = Fade(10)
	ans = f.find_int(10, start, 255)
	assert len(ans) == 11
	assert ans[-1] == 255
Exemplo n.º 3
0
Arquivo: test.py Projeto: Ghalko/fade
def test_last_number_255(steps):
	f = Fade(steps)
	ans = f.find_int(steps, 0, 255)
	assert ans[-1] == 255
Exemplo n.º 4
0
Arquivo: test.py Projeto: Ghalko/fade
def test_range(largest):
	f = Fade(10)
	ans = f.find_int(10, 0, largest)
	assert len(ans) == 11
	assert ans[-1] == largest
Exemplo n.º 5
0
Arquivo: test.py Projeto: Ghalko/fade
def test_find_int_len(steps):
	f = Fade(steps)
	assert len(f.find_int(steps, 0, 255)) == steps+1