From 1b4bd50d08503616682d0a3a29cc5db36d856f03 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Thu, 14 Mar 2024 11:15:49 +0100 Subject: [PATCH] update test --- test/struct.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/struct.jl b/test/struct.jl index 3e842932c..8eef42dc1 100644 --- a/test/struct.jl +++ b/test/struct.jl @@ -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])