def test_sl(Y, bonus, r, expected_val): test_val = cf.sl(Y, bonus, r) assert(np.allclose(test_val, expected_val))
def test_sl(Y, bonus, r, expected_val): test_val = cf.sl(Y, bonus, r) assert (np.allclose(test_val, expected_val))