From 8c1a768870779fc62d155b1275868f3633404e2f Mon Sep 17 00:00:00 2001 From: Vaibhav Dixit Date: Thu, 21 Dec 2023 17:27:43 -0500 Subject: [PATCH] Add test --- test/arrays.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/arrays.jl b/test/arrays.jl index 24497a0a1..98da87837 100644 --- a/test/arrays.jl +++ b/test/arrays.jl @@ -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 \ No newline at end of file