Skip to content

Commit

Permalink
Add a few tests for unicode symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Nov 22, 2024
1 parent 527fd5f commit c7f3d55
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions M2/Macaulay2/tests/normal/unicode.m2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v = vector {1, 2}
w = vector {3, 4}
assert(v⊗w == vector {3, 4, 6, 8})

Vector·Vector := (v, w) -> ((transpose v#0) * w#0)_(0, 0)
assert(v·w == 11)

-- should get "invalid symbol" error
assert try getSymbol "⟎⟎" then false else true

0 comments on commit c7f3d55

Please sign in to comment.