Skip to content

Commit

Permalink
test: fix old diff2term in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Sep 20, 2024
1 parent 201596c commit a291fe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/arrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ end
@testset "getname" begin
@variables t x(t)[1:4]
v = Symbolics.lower_varname(unwrap(x[2]), unwrap(t), 2)
@test getname(v) == Symbol("x(t)[2]ˍtt")
@test operation(v) == getindex
@test arguments(v)[2] == 2
@test getname(v) == getname(arguments(v)[1]) == Symbol("x(t)ˍtt")
end

@testset "getindex" begin
Expand Down
2 changes: 1 addition & 1 deletion test/diff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Dx = Differential(x)

@test Symbol(D(D(uu))) === Symbol("uuˍtt(t)")
@test Symbol(D(uuˍt)) === Symbol(D(D(uu)))
@test Symbol(D(v[2])) === Symbol("v(t)[2]ˍt")
@test Symbol(D(v[2])) === Symbol("getindex(var\"v(t)ˍt\", 2)")

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

Expand Down

0 comments on commit a291fe3

Please sign in to comment.