We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aed95d7 commit a23e7f0Copy full SHA for a23e7f0
test/variable_utils.jl
@@ -17,11 +17,11 @@ new = (((1 / β - 1) + δ) / γ) ^ (1 / (γ - 1))
17
18
# test namespace_expr
19
@parameters t a p(t)
20
-pterm = p.val
+pterm = value(p)
21
pnsp = ModelingToolkit.namespace_expr(pterm, :namespace, :t)
22
@test typeof(pterm) == typeof(pnsp)
23
@test ModelingToolkit.getname(pnsp) == Symbol("namespace₊p")
24
-asym = a.val
+asym = value(a)
25
ansp = ModelingToolkit.namespace_expr(asym, :namespace, :t)
26
@test typeof(asym) == typeof(ansp)
27
@test ModelingToolkit.getname(ansp) == Symbol("namespace₊a")
0 commit comments