Skip to content

Commit

Permalink
Fix lingering compare_values bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielKS committed Dec 27, 2024
1 parent 5a5096e commit 5803304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2425,7 +2425,7 @@ function IS.compare_values(
if !compare_uuids
name1 = get_name(val1)
name2 = get_name(val2)
if !match_fn(name1, name2)
if !_fetch_match_fn(match_fn)(name1, name2)
@error "values do not match" T name name1 name2
match = false
end
Expand Down
1 change: 1 addition & 0 deletions test/test_dynamic_generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ end
@test dynamics[1] == Gen1AVR
@test get_dynamic_injector(static_gen) == Gen1AVR
@test get_base_power(static_gen) == get_base_power(Gen1AVR)
@test PSY.compare_values(static_gen, deepcopy(static_gen))

remove_component!(sys, Gen1AVR)
@test isnothing(get_dynamic_injector(static_gen))
Expand Down

0 comments on commit 5803304

Please sign in to comment.