Esempio n. 1
0
def test_malformed_input_histogram_segments():
    list(linesegments.histogram_segments([(1, -1)]))
def test_histogram_segments():
	values = list(linesegments.histogram_segments([(1, 4), (2, 3)]))
	assert_equals([((1, 2), 1), ((2, 3), 2), ((3, 4), 1)], values)
Esempio n. 3
0
def test_histogram_segments():
    values = list(linesegments.histogram_segments([(1, 4), (2, 3)]))
    assert_equals([((1, 2), 1), ((2, 3), 2), ((3, 4), 1)], values)
def test_malformed_input_histogram_segments():
	list(linesegments.histogram_segments([(1, -1)]))