Skip to content

Commit

Permalink
Test coverage 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Aug 23, 2023
1 parent 1dab396 commit 6db4f23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ using Test
@test basis_transform(PolBasis{XPol,YPol}()=>PolBasis{RPol,LPol}())*basis_transform(PolBasis{RPol,LPol}()=>PolBasis{XPol,YPol}()) [1.0 0.0;0.0 1.0]
@test basis_transform(PolBasis{RPol,LPol}()=>PolBasis{XPol,YPol}())*basis_transform(PolBasis{XPol,YPol}()=>PolBasis{RPol,LPol}()) [1.0 0.0;0.0 1.0]

@test basis_transform(CirBasis(), LinBasis()) == basis_transform(CirBasis()=>LinBasis())

for (e1, e2) in [(RPol, LPol), (LPol, RPol),
(XPol, YPol), (XPol, YPol),
]
Expand Down Expand Up @@ -82,6 +84,10 @@ using Test
@test StokesParams(cXY) inv(2)*[0.0, 0.0, 0.5, -0.5im]
@test StokesParams(cYY) inv(2)*[0.5, -0.5, 0.0, 0.0]

@test StaticArraysCore.similar_type(CoherencyMatrix{CirBasis,LinBasis}, Float64, Size(2,2)) == CoherencyMatrix{CirBasis,LinBasis,Float64}
@test StaticArraysCore.similar_type(StokesParams, Float64, Size(4,)) == StokesParams{Float64}


end

@testset "Conversions back and forward" begin
Expand Down

2 comments on commit 6db4f23

@ptiede
Copy link
Member Author

@ptiede ptiede commented on 6db4f23 Aug 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/90165

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.1 -m "<description of version>" 6db4f23c11c8b8ed0d70431eb7092eba5e2e5321
git push origin v0.1.1

Please sign in to comment.