Skip to content

Commit c7f3d55

Browse files
committed
Add a few tests for unicode symbols
1 parent 527fd5f commit c7f3d55

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

M2/Macaulay2/tests/normal/unicode.m2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
v = vector {1, 2}
2+
w = vector {3, 4}
3+
assert(v⊗w == vector {3, 4, 6, 8})
4+
5+
Vector·Vector := (v, w) -> ((transpose v#0) * w#0)_(0, 0)
6+
assert(v·w == 11)
7+
8+
-- should get "invalid symbol" error
9+
assert try getSymbol "⟎⟎" then false else true

0 commit comments

Comments
 (0)