This commit is contained in:
2026-08-10 16:10:04 +07:00
parent c78f4b023d
commit c5cb18f0f1
4 changed files with 29 additions and 40 deletions
+3 -3
View File
@@ -142,13 +142,13 @@ TOOLS_DIR = joinpath(@__DIR__, "..", "src", "tools")
@test reg["manualTool"].parallelToolExecute == true
# ------------------------------------------------------------------ #
# 8. getTools returns deep copy (mutations don't affect registry) #
# 8. getTools returns direct reference (mutations affect registry) #
# ------------------------------------------------------------------ #
copy1 = getTools(store3)
copy2 = getTools(store3)
@test copy1 !== copy2
@test copy1 === copy2 # same reference, not a deep copy
empty!(copy1)
@test !isempty(getTools(store3))
@test isempty(getTools(store3)) # mutation propagates
# ------------------------------------------------------------------ #
# 9. Per-store isolation — two stores don't share tools #