Skip to content

Commit

Permalink
added tests for submodules and where calls
Browse files Browse the repository at this point in the history
  • Loading branch information
co1emi11er2 committed Nov 30, 2024
1 parent 6eae65b commit ae988d9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/TestHandcalcFunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,25 @@ function sym_function(x)
y = x
end

module SubA
module SubB
sub_module_func(a, b) = c = a + b
end
end

function where_func(a::T, b::S) where {T <:Number,S <: Number}
c = a + b
end

function calc_if_Is(b, h, type)
I = if type == :Ix
calc_Ix(b, h)
else
calc_Iy(h, b)
end

return I
end


end

0 comments on commit ae988d9

Please sign in to comment.