From dfd0f3164ac15d92ab59610adfd111d5a4ef446d Mon Sep 17 00:00:00 2001 From: co1emi11er2 Date: Thu, 5 Dec 2024 09:35:20 -0600 Subject: [PATCH] update sub_module_func --- Project.toml | 2 +- src/TestHandcalcFunctions.jl | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 953cd6a..bfaf533 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.3" +version = "0.2.4" [compat] julia = "1.10" diff --git a/src/TestHandcalcFunctions.jl b/src/TestHandcalcFunctions.jl index d6d389f..6d908ad 100644 --- a/src/TestHandcalcFunctions.jl +++ b/src/TestHandcalcFunctions.jl @@ -62,9 +62,16 @@ end module SubA - sub_module_func(a, b) = c = a * b + module SubB - sub_module_func(a, b) = c = a + b + sub_module_func(a, b) = c2 = a + b + end + + function sub_module_func(a, b) + c1 = a * b + c2 = SubB.sub_module_func(a, b) + + return c1, c2 end end @@ -94,8 +101,7 @@ end function test_function_finder(a, b) I = calc_Is(a, b) - c1 = SubA.sub_module_func(a, b) - c2 = SubA.SubB.sub_module_func(a, b) + c1, c2 = SubA.sub_module_func(a, b) return c1, c2 end