Skip to content

Commit

Permalink
added testing
Browse files Browse the repository at this point in the history
  • Loading branch information
co1emi11er2 committed Mar 16, 2024
1 parent e2921ed commit 6b0f03d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
9 changes: 8 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6b0f03d

Please sign in to comment.