We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37d80d7 commit 403c2c2Copy full SHA for 403c2c2
2 files changed
test/crp.jl
@@ -15,6 +15,18 @@
15
@test c.q3 == 3.0
16
@test eltype(c) == Float64
17
18
+ c = CRP(1.0, 2, 3)
19
+ @test c.q1 == 1.0
20
+ @test c.q2 == 2.0
21
+ @test c.q3 == 3.0
22
+ @test eltype(c) == Float64
23
+
24
+ c = CRP(1.0f0, 2, 3)
25
26
27
28
+ @test eltype(c) == Float32
29
30
c = CRP(1, 2, 3)
31
@test c.q1 == 1
32
@test c.q2 == 2
test/mrp.jl
@test m.q3 == 3.0
@test eltype(m) == Float64
+ m = MRP(1.0, 2, 3)
+ @test m.q1 == 1.0
+ @test m.q2 == 2.0
+ @test m.q3 == 3.0
+ @test eltype(m) == Float64
+ m = MRP(1.0f0, 2, 3)
+ @test eltype(m) == Float32
m = MRP(1, 2, 3)
@test m.q1 == 1
@test m.q2 == 2
0 commit comments