Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eliascarv committed May 17, 2024
1 parent 0aad37d commit 8ac8229
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/rotation_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,24 +211,24 @@ all_types = (RotMatrix3, RotMatrix{3}, AngleAxis, RotationVec,

@testset "Rotation result eltype" begin
@testset "$(R)" for R in all_types
QF64 = typeof(1.0u"m")
QF32 = typeof(1.0f0u"m")
QuantityF64 = typeof(1.0u"m")
QuantityF32 = typeof(1.0f0u"m")

r1 = rand(R{Float64})
r2 = rand(R{Float32})
v1 = rand(SVector{3,Float64})
v2 = rand(SVector{3,Float32})
v3 = rand(SVector{3,QF64})
v4 = rand(SVector{3,QF32})
v3 = rand(SVector{3,QuantityF64})
v4 = rand(SVector{3,QuantityF32})

@test eltype(r1*v1) <: Float64
@test eltype(r1*v2) <: Float64
@test eltype(r1*v3) <: QF64
@test eltype(r1*v4) <: QF64
@test eltype(r1*v3) <: QuantityF64
@test eltype(r1*v4) <: QuantityF64
@test eltype(r2*v1) <: Float64
@test eltype(r2*v2) <: Float32
@test eltype(r2*v3) <: QF64
@test eltype(r2*v4) <: QF32
@test eltype(r2*v3) <: QuantityF64
@test eltype(r2*v4) <: QuantityF32
end
end

Expand Down

0 comments on commit 8ac8229

Please sign in to comment.