diff --git a/Project.toml b/Project.toml index bb55b9f..953cd6a 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "TestHandcalcFunctions" uuid = "6ba57fb7-81df-4b24-8e8e-a3885b6fcae7" authors = ["Cole Miller"] -version = "0.2.2" +version = "0.2.3" [compat] julia = "1.10" diff --git a/src/TestHandcalcFunctions.jl b/src/TestHandcalcFunctions.jl index a513283..529038f 100644 --- a/src/TestHandcalcFunctions.jl +++ b/src/TestHandcalcFunctions.jl @@ -1,7 +1,7 @@ module TestHandcalcFunctions -export calc_Ix, calc_Is, calc_Iy, area_rectangle +export calc_Ix, calc_Is, calc_Iy, area_rectangle, sym_function function calc_Ix(b, h) Ix = b*h^3/12 @@ -56,4 +56,8 @@ function calc_Is(b, h) return Ix, Iy end +function sym_function(x) + y = x +end + end diff --git a/test/runtests.jl b/test/runtests.jl index 6b47959..0542890 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -11,4 +11,5 @@ using Test @test TestHandcalcFunctions.area_rectangle(3, 5) == 15 @test TestHandcalcFunctions.calculate_Ix(5, 15) == 1406.25 @test TestHandcalcFunctions.calc_Is(5, 15) == (1406.25, 156.25) + @test TestHandcalcFunctions.sym_function(:hello) == :hello end