Skip to content

Implementes structured update #304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
using public getaxes method
  • Loading branch information
mmikhasenko committed Apr 12, 2025
commit 9c3bca17362daccdfed7ff9d3f5687662adae13a
4 changes: 2 additions & 2 deletions test/update_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ using Test

# Test 2: Structure preservation
@test typeof(result) == typeof(default)
@test getfield(result, :axes) == getfield(default, :axes)
@test getaxes(result) == getaxes(default)

# Test 3: Deep nested update
deep_default = ComponentArray(
Expand Down Expand Up @@ -50,5 +50,5 @@ using Test
@test result_nonexist.sig.sigma ≈ 2.0
@test !hasproperty(result_nonexist, :nonexistent)
@test typeof(result_nonexist) == typeof(default)
@test getfield(result_nonexist, :axes) == getfield(default, :axes)
@test getaxes(result_nonexist) == getaxes(default)
end