def test_bootstrap_multiarg():
 x = np.vstack([[1, 10] for i in range(10)])
 y = np.vstack([[5, 5] for i in range(10)])
 test_func = (lambda x, y: np.vstack((x, y)).max(axis=0))
 out_actual = algo.bootstrap(x, y, n_boot=2, func=test_func)
 out_wanted = np.array([[5, 10], [5, 10]])
 assert_array_equal(out_actual, out_wanted)

def test_bootstrap_multiarg ( ) : x = np . vstack ( [ [ 1 , 10 ] for i in range ( 10 ) ] ) y = np . vstack ( [ [ 5 , 5 ] for i in range ( 10 ) ] ) test_func = ( lambda x , y : np . vstack ( ( x , y ) ) . max ( axis = 0 ) ) out_actual = algo . bootstrap ( x , y , n_boot = 2 , func = test_func ) out_wanted = np . array ( [ [ 5 , 10 ] , [ 5 , 10 ] ] ) assert_array_equal ( out_actual , out_wanted )
test that bootstrap works with multiple input arrays .