Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Mar 14, 2024
1 parent 2570016 commit 1b4bd50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/struct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ S = symstruct(Jörgen)
@variables x::S
xa = Symbolics.unwrap(symbolic_getproperty(x, :a))
@test Symbolics.symtype(xa) == Int
@test Symbolics.operation(xa) == getfield
@test isequal(Symbolics.arguments(xa), [Symbolics.unwrap(x), Meta.quot(:a)])
@test Symbolics.operation(xa) == Symbolics.typed_getfield
@test isequal(Symbolics.arguments(xa), [Symbolics.unwrap(x), Val{:a}()])
xa = Symbolics.unwrap(symbolic_setproperty!(x, :a, 10))
@test Symbolics.operation(xa) == setfield!
@test isequal(Symbolics.arguments(xa), [Symbolics.unwrap(x), Meta.quot(:a), 10])
Expand Down

0 comments on commit 1b4bd50

Please sign in to comment.