Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add test for issue #169

  • Loading branch information...
commit 8affa8de7338f08c2bb77e290fd7509440d6eee6 1 parent 7629a0e
@markflorisson markflorisson authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 numba/tests/issues/test_issue_169.py
View
21 numba/tests/issues/test_issue_169.py
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+
+"""
+Test binding of autojit methods.
+"""
+
+from __future__ import print_function, division, absolute_import
+
+from numba import *
+
+class A(object):
+ @autojit
+ def a(self, arg):
+ return self * arg
+
+ def __mul__(self, other):
+ return 10 * other
+
+assert A().a(10) == 100
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.