File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 136136 q = rand (StableRNG (1986 ), Quaternion{Float32})
137137 @test q ≈ q_exp atol = 1e-15
138138end
139+
140+ @testset " CRP (Float64)" begin
141+ c_exp = CRP (
142+ - 1.8520630312725974 ,
143+ - 24.266971356535347 ,
144+ - 4.418926089538365
145+ )
146+
147+ c = rand (StableRNG (1986 ), CRP)
148+ @test c ≈ c_exp atol = 1e-15
149+
150+ c = rand (StableRNG (1986 ), CRP{Float64})
151+ @test c ≈ c_exp atol = 1e-15
152+ end
153+
154+ @testset " CRP (Float32)" begin
155+ c_exp = CRP (
156+ 0.049937766f0 ,
157+ 0.7139188f0 ,
158+ - 0.5100343f0
159+ )
160+
161+ c = rand (StableRNG (1986 ), CRP{Float32})
162+ @test c ≈ c_exp atol = 1e-15
163+ end
164+
165+ @testset " MRP (Float64)" begin
166+ m_exp = MRP (
167+ - 0.07190895825384126 ,
168+ - 0.9421993748372708 ,
169+ - 0.17157103529089043
170+ )
171+
172+ m = rand (StableRNG (1986 ), MRP)
173+ @test m ≈ m_exp atol = 1e-15
174+
175+ m = rand (StableRNG (1986 ), MRP{Float64})
176+ @test m ≈ m_exp atol = 1e-15
177+ end
178+
179+ @testset " MRP (Float32)" begin
180+ m_exp = MRP (
181+ 0.021420741f0 ,
182+ 0.30623457f0 ,
183+ - 0.21877857f0
184+ )
185+
186+ m = rand (StableRNG (1986 ), MRP{Float32})
187+ @test m ≈ m_exp atol = 1e-15
188+ end
You can’t perform that action at this time.
0 commit comments