Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Dec 22, 2023
1 parent 618dd53 commit 6dbab75
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 @@ -409,3 +409,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 6dbab75

Please sign in to comment.