Skip to content

Commit 13dcfdd

Browse files
RomeoVclaude
andcommitted
Add Function to _is_basic_julia_type and update tests
- Include Function in the list of basic Julia types - Add RecursiveArrayTools dependency to downstream tests - Include struct copy tests in main test suite - Add ODE solution copy tests to downstream test suite 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 302f91f commit 13dcfdd

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function _is_basic_julia_type(T)
5454
# We check the module to identify Core/Base types vs user-defined types
5555
mod = Base.parentmodule(T)
5656
return T <: AbstractString || T <: Number || T <: Symbol || T <: Tuple ||
57-
T <: UnitRange || T <: StepRange || T <: Regex ||
57+
T <: UnitRange || T <: StepRange || T <: Regex || T <: Function ||
5858
T === Nothing || T === Missing ||
5959
mod === Core || mod === Base
6060
end

test/downstream/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
33
MonteCarloMeasurements = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
44
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
5+
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
56
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
67
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
78
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ end
3030
@time @safetestset "Linear Algebra Tests" include("linalg.jl")
3131
@time @safetestset "Adjoint Tests" include("adjoints.jl")
3232
@time @safetestset "Measurement Tests" include("measurements.jl")
33+
@time @safetestset "Struct Copy Tests" include("struct_copy_test.jl")
3334
end
3435

3536
if GROUP == "SymbolicIndexingInterface" || GROUP == "All"
@@ -39,6 +40,7 @@ end
3940
if GROUP == "Downstream"
4041
activate_downstream_env()
4142
@time @safetestset "ODE Solve Tests" include("downstream/odesolve.jl")
43+
@time @safetestset "ODE Solution Copy Tests" include("downstream/ode_solution_copy_test.jl")
4244
@time @safetestset "Event Tests with ArrayPartition" include("downstream/downstream_events.jl")
4345
@time @safetestset "Measurements and Units" include("downstream/measurements_and_units.jl")
4446
@time @safetestset "TrackerExt" include("downstream/TrackerExt.jl")

0 commit comments

Comments
 (0)