Commit 4236478d authored by Robert Bradshaw's avatar Robert Bradshaw

import cython + cython inline test

parent cc43e481
......@@ -40,6 +40,15 @@ class TestInline(CythonTest):
def test_globals(self):
self.assertEquals(inline("return global_value + 1", **self.test_kwds), global_value + 1)
def test_pure(self):
import cython as cy
b = inline("""
b = cy.declare(float, a)
c = cy.declare(cy.pointer(cy.float), &b)
return b
""", a=3)
self.assertEquals(type(b), float)
if has_numpy:
def test_numpy(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment