Skip to content

Commit

Permalink
Add unit tests for scalar division
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Oct 7, 2024
1 parent 5c5dc35 commit c2f8be9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions M2/Macaulay2/tests/normal/vector.m2
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ assert Equation(2 * v, vector(N, {2, 4, 6}))
assert Equation(x * v, vector map(N, R^{-1}, {{x}, {2*x}, {3*x}}))
assert Equation(v * 2, vector(N, {2, 4, 6}))
assert Equation(v * x, vector map(N, R^{-1}, {{x}, {2*x}, {3*x}}))
assert Equation(v / 2, vector(N, {1/2, 1, 3/2}))
v = vector {x, y, z}
kk = frac R
assert Equation(v / x, vector map(kk^3, kk^{-1}, {{1}, {y/x}, {z/x}}))

0 comments on commit c2f8be9

Please sign in to comment.