def test_compare_function_multiple_values_some_under_curve(self): assert num_under_curve(linear, [(1, 0), (.5, .4), (2, 3)]) == 2
def test_compare_function_1_value(self): assert num_under_curve(linear, [(1, 0)]) == 1