diff --git a/README.md b/README.md index d9e1e41..1749187 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,5 @@ [![Build Status](https://ci.appveyor.com/api/projects/status/github/co1emi11er2/TestHandcalcFunctions.jl?svg=true)](https://ci.appveyor.com/project/co1emi11er2/TestHandcalcFunctions-jl) [![Coverage](https://codecov.io/gh/co1emi11er2/TestHandcalcFunctions.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/co1emi11er2/TestHandcalcFunctions.jl) [![Coverage](https://coveralls.io/repos/github/co1emi11er2/TestHandcalcFunctions.jl/badge.svg?branch=main)](https://coveralls.io/github/co1emi11er2/TestHandcalcFunctions.jl?branch=main) + +Simple functions for testing [Handcalcs.jl](https://github.com/co1emi11er2/Handcalcs.jl) \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index 24251e0..54491d1 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,5 +2,12 @@ using TestHandcalcFunctions using Test @testset "TestHandcalcFunctions.jl" begin - # Write your tests here. + @test calc_Ix(5, 15) == 1406.25 + @test TestHandcalcFunctions.calc_I() == 1406.25 + @test TestHandcalcFunctions.calc_Iy(5,) == 1406.25 + @test TestHandcalcFunctions.calc_Iy(15,5,expo=2) == 31.25 + @test TestHandcalcFunctions.calc_Iy(15,5;expo=2, denominator=10) == 37.5 + @test TestHandcalcFunctions.area_sqare(3) == 9 + @test TestHandcalcFunctions.area_rectangle(3, 5) == 15 + @test TestHandcalcFunctions.calculate_Ix(5, 15) == 1406.25 end