Skip to content

Commit fe4e1fe

Browse files
committed
tests/basics: Add test for matmul operator.
This is a Python 3.5 feature so the .exp file is needed.
1 parent 2069c56 commit fe4e1fe

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

tests/basics/special_methods2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def __dir__(self):
111111
-cud1
112112
~cud1
113113
cud1 * cud2
114+
cud1 @ cud2
114115
cud1 / cud2
115116
cud2 // cud1
116117
cud1 += cud2
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
__pos__ called
2+
__pos__ called
3+
__neg__ called
4+
__invert__ called
5+
__mul__ called
6+
__matmul__ called
7+
__truediv__ called
8+
__floordiv__ called
9+
__iadd__ called
10+
__isub__ called
11+
__mod__ called
12+
__pow__ called
13+
__or__ called
14+
__and__ called
15+
__xor__ called
16+
__lshift__ called
17+
__rshift__ called
18+
['a', 'b', 'c']
19+
False

0 commit comments

Comments
 (0)