Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Mar 14, 2024
1 parent 7f0a25e commit 8c1a768
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/arrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -413,3 +413,8 @@ end
@test_throws BoundsError k[-1]
@test_throws BoundsError k[4]
end

@testset "similar term #991" begin
@variables x[1:3]
@test substitute(x[1:2] .* x[3], Dict(x => [1, 2, 3])) == [3, 6]
end

0 comments on commit 8c1a768

Please sign in to comment.