Skip to content

Commit

Permalink
added sym_function
Browse files Browse the repository at this point in the history
  • Loading branch information
co1emi11er2 committed Nov 15, 2024
1 parent 602bf28 commit f2edc43
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 5 additions & 1 deletion src/TestHandcalcFunctions.jl
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -56,4 +56,8 @@ function calc_Is(b, h)
return Ix, Iy
end

function sym_function(x)
y = x
end

end
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 comments on commit f2edc43

@co1emi11er2
Copy link
Owner Author

Choose a reason for hiding this comment

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

@JuliaRegistrator register()

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

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

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.2.3 -m "<description of version>" f2edc43e83fc9ae28b419750930e27fa0fd9197f
git push origin v0.2.3

Also, note the warning: Version 0.2.3 skips over 0.2.1
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.

Please sign in to comment.