Skip to content

Commit

Permalink
Add corner cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucia Fonseca de la Bella authored and Lucia Fonseca de la Bella committed Jan 16, 2023
1 parent 7c2fab2 commit a47b0ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions skypy/galaxies/tests/test_stellar_mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ def test_schechter_smf_phi_mass_quenched(phic, phis):
assert phimq_1d.shape == phic_1d.shape == phis_1d.shape
assert np.all(phimq_1d == phic_1d + phis_1d)

# Corner cases
phi0 = 1
assert phi0 == 0.5 * stellar_mass.schechter_smf_phi_mass_quenched(phi0, phi0)
assert 0.0 == stellar_mass.schechter_smf_phi_mass_quenched(phi0, -phi0)
assert phi0 == stellar_mass.schechter_smf_phi_mass_quenched(phi0, 0.0)


SATELLITE_FUNCTIONS = [
stellar_mass.schechter_smf_phi_satellites,
Expand Down

0 comments on commit a47b0ef

Please sign in to comment.