def test_failed_cB_conversion(): with pytest.raises(ValueError): cB_to_freq(1)
def test_failed_cB_conversion(): cB_to_freq(1)
def test_cB_conversion(): assert cB_to_freq(0) == 1. assert cB_to_freq(-100) == pytest.approx(0.1) assert cB_to_freq(-600) == pytest.approx(1e-6)
def test_cB_conversion(): eq_(cB_to_freq(0), 1.) assert_almost_equal(cB_to_freq(-100), 0.1) assert_almost_equal(cB_to_freq(-600), 1e-6)
def test_cB_conversion(): eq_(cB_to_freq(0), 1.0) assert_almost_equal(cB_to_freq(-100), 0.1) assert_almost_equal(cB_to_freq(-600), 1e-6)