Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Apr 25, 2024
1 parent e2b85a4 commit a915561
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/overloads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,11 @@ let
false
end
end

using Symbolics: scalarize
@variables X[1:3, 1:3] x
sX = fill(x, 3, 3)
sx = fill(x, 3)
@test isequal(scalarize(X + XX), scalarize(X) + XX)
@test isequal(scalarize(X * XX), scalarize(X) * XX)
@test isequal(scalarize(X * sx), scalarize(X) * sx)

0 comments on commit a915561

Please sign in to comment.