diff options
author | Damien George <damien.p.george@gmail.com> | 2019-07-25 13:17:31 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-09-26 15:15:34 +1000 |
commit | fe4e1fe4b907e24af2ff566bdbc2edc49db28dce (patch) | |
tree | f53315d6d8a8abd2061ae7a485834c4282b55f36 | |
parent | 2069c563f9e944d8f45e524b425fff23208e8153 (diff) |
tests/basics: Add test for matmul operator.
This is a Python 3.5 feature so the .exp file is needed.
-rw-r--r-- | tests/basics/special_methods2.py | 1 | ||||
-rw-r--r-- | tests/basics/special_methods2.py.exp | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/basics/special_methods2.py b/tests/basics/special_methods2.py index c72c8cf00..09e43fff2 100644 --- a/tests/basics/special_methods2.py +++ b/tests/basics/special_methods2.py @@ -111,6 +111,7 @@ except TypeError: -cud1 ~cud1 cud1 * cud2 +cud1 @ cud2 cud1 / cud2 cud2 // cud1 cud1 += cud2 diff --git a/tests/basics/special_methods2.py.exp b/tests/basics/special_methods2.py.exp new file mode 100644 index 000000000..a9ae75be5 --- /dev/null +++ b/tests/basics/special_methods2.py.exp @@ -0,0 +1,19 @@ +__pos__ called +__pos__ called +__neg__ called +__invert__ called +__mul__ called +__matmul__ called +__truediv__ called +__floordiv__ called +__iadd__ called +__isub__ called +__mod__ called +__pow__ called +__or__ called +__and__ called +__xor__ called +__lshift__ called +__rshift__ called +['a', 'b', 'c'] +False |