From 69feb9283f175cdbf2388e895eba2884befb5284 Mon Sep 17 00:00:00 2001 From: Wonseok Shin Date: Sat, 17 Jul 2021 00:53:31 -0400 Subject: [PATCH] Add unit tests showing some example usages --- test/runtests.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index fa8b437..306d022 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,5 +2,10 @@ using SimpleConstants using Test @testset "SimpleConstants.jl" begin - # Write your tests here. + λ = rand() # wavelength + @test 2πc₀/λ == 2π * c₀ / λ + @test ℎc₀/λ == ℎ * c₀ / λ + + @test exp(i2π/3) == exp(im * 2π / 3) + @test exp(iπ/3) == exp(im * π / 3) end