Skip to content

Commit a291fe3

Browse files
test: fix old diff2term in tests
1 parent 201596c commit a291fe3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/arrays.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ end
3636
@testset "getname" begin
3737
@variables t x(t)[1:4]
3838
v = Symbolics.lower_varname(unwrap(x[2]), unwrap(t), 2)
39-
@test getname(v) == Symbol("x(t)[2]ˍtt")
39+
@test operation(v) == getindex
40+
@test arguments(v)[2] == 2
41+
@test getname(v) == getname(arguments(v)[1]) == Symbol("x(t)ˍtt")
4042
end
4143

4244
@testset "getindex" begin

test/diff.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Dx = Differential(x)
1313

1414
@test Symbol(D(D(uu))) === Symbol("uuˍtt(t)")
1515
@test Symbol(D(uuˍt)) === Symbol(D(D(uu)))
16-
@test Symbol(D(v[2])) === Symbol("v(t)[2]ˍt")
16+
@test Symbol(D(v[2])) === Symbol("getindex(var\"v(t)ˍt\", 2)")
1717

1818
test_equal(a, b) = @test isequal(simplify(a), simplify(b))
1919

0 commit comments

Comments
 (0)