Skip to content

Commit

Permalink
Add unit tests showing some example usages
Browse files Browse the repository at this point in the history
  • Loading branch information
wsshin committed Jul 17, 2021
1 parent 1a90a8e commit 69feb92
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@ using SimpleConstants
using Test

@testset "SimpleConstants.jl" begin
# Write your tests here.
λ = rand() # wavelength
@test c₀/λ == 2π * c₀ / λ
@test ℎc₀/λ ==* c₀ / λ

@test exp(i2π/3) == exp(im * 2π / 3)
@test exp(iπ/3) == exp(im * π / 3)
end

2 comments on commit 69feb92

@wsshin
Copy link
Owner Author

@wsshin wsshin commented on 69feb92 Jul 17, 2021

Choose a reason for hiding this comment

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

@JuliaRegistrator register

Release notes:

SimpleConstants.jl is becoming a registered package.

@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/41049

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.0 -m "<description of version>" 69feb9283f175cdbf2388e895eba2884befb5284
git push origin v0.1.0

Please sign in to comment.