def test_xtfuncs():
 cosmo = core.LambdaCDM(70, 0.3, 0.5)
 z = np.array([2.0, 3.2])
 assert allclose(cosmo.lookback_time_integrand(3), 0.05221897665496938, rtol=0.0001)
 assert allclose(cosmo.lookback_time_integrand(z), [0.10333179, 0.04644541], rtol=0.0001)
 assert allclose(cosmo.abs_distance_integrand(3), 3.34201450591804, rtol=0.0001)
 assert allclose(cosmo.abs_distance_integrand(z), [2.7899584, 3.44104758], rtol=0.0001)

def test_xtfuncs ( ) : cosmo = core . LambdaCDM ( 70 , 0.3 , 0.5 ) z = np . array ( [ 2.0 , 3.2 ] ) assert allclose ( cosmo . lookback_time_integrand ( 3 ) , 0.05221897665496938 , rtol = 0.0001 ) assert allclose ( cosmo . lookback_time_integrand ( z ) , [ 0.10333179 , 0.04644541 ] , rtol = 0.0001 ) assert allclose ( cosmo . abs_distance_integrand ( 3 ) , 3.34201450591804 , rtol = 0.0001 ) assert allclose ( cosmo . abs_distance_integrand ( z ) , [ 2.7899584 , 3.44104758 ] , rtol = 0.0001 )
test of absorption and lookback integrand .