@@ -34,8 +34,8 @@ Random.seed!(8675309)
3434 @test_throws AssertionError spectrum(wave, flux_trimmed)
3535 expected = """
3636 SingleSpectrum(Float64, Measurements.Measurement{Float64})
37- wave: ( 10000.0, 50000.0)
38- flux: (1 .0 ± 0.1, 1000. 0 ± 1.0)
37+ wave ((1000,)): 10000.0 .. 50000.0
38+ flux ((1000,)): 100 .0 ± -2.8 .. 100. 0 ± 0.6
3939 meta: Dict{Symbol, Any}(:name => "test spectrum")"""
4040 @test sprint(show, spec) == expected
4141 @test spec. name == " test spectrum"
8787 expected = """
8888 EchelleSpectrum(Float64, Measurements.Measurement{Float64})
8989 # orders: 3
90+ wave ((3, 1000)): 10000.0 .. 50000.0
91+ flux ((3, 1000)): 100.0 ± -2.8 .. 100.0 ± 0.6
9092 meta: Dict{Symbol, Any}(:name => "Test Echelle Spectrum")"""
9193 @test sprint(show, spec) == expected
9294 @test spec. name == " Test Echelle Spectrum"
131133 @test strip_spec. meta == spec. meta
132134 expected = """
133135 SingleSpectrum(Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}, Unitful.Quantity{Measurements.Measurement{Float64}, 𝐌 𝐋^-1 𝐓^-3, Unitful.FreeUnits{(Å^-1, m^-2, W), 𝐌 𝐋^-1 𝐓^-3, nothing}})
134- wave: ( 10000.0 Å, 50000.0 Å)
135- flux: (1 .0 ± 0.1 W Å^-1 m^-2, 1000. 0 ± 1.0 W Å^-1 m^-2)
136+ wave ((1000,)): 10000.0 Å .. 50000.0 Å
137+ flux ((1000,)): 100 .0 ± -2.8 W Å^-1 m^-2 .. 100. 0 ± 0.6 W Å^-1 m^-2
136138 meta: Dict{Symbol, Any}(:name => "test")"""
137139 @test sprint(show, spec) == expected
138140end
@@ -183,10 +185,11 @@ end
183185 @test strip_spec. wave == ustrip.(spec. wave)
184186 @test strip_spec. flux == ustrip.(spec. flux)
185187 @test strip_spec. meta == spec. meta
186- sprint(show, spec)
187188 expected = """
188189 EchelleSpectrum(Unitful.Quantity{Float64, 𝐋, Unitful.FreeUnits{(Å,), 𝐋, nothing}}, Unitful.Quantity{Measurements.Measurement{Float64}, 𝐌 𝐋^-1 𝐓^-3, Unitful.FreeUnits{(Å^-1, m^-2, W), 𝐌 𝐋^-1 𝐓^-3, nothing}})
189190 # orders: 3
191+ wave ((3, 1000)): 10000.0 Å .. 50000.0 Å
192+ flux ((3, 1000)): 100.0 ± -2.8 W Å^-1 m^-2 .. 100.0 ± 0.6 W Å^-1 m^-2
190193 meta: Dict{Symbol, Any}(:name => "test echelle")"""
191194 @test sprint(show, spec) == expected
192195end
0 commit comments