File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 36
36
@testset " getname" begin
37
37
@variables t x (t)[1 : 4 ]
38
38
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" )
40
42
end
41
43
42
44
@testset " getindex" begin
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Dx = Differential(x)
13
13
14
14
@test Symbol (D (D (uu))) === Symbol (" uuˍtt(t)" )
15
15
@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) " )
17
17
18
18
test_equal (a, b) = @test isequal (simplify (a), simplify (b))
19
19
You can’t perform that action at this time.
0 commit comments