Commit a823cf5e authored by Robert Bradshaw's avatar Robert Bradshaw

fix for struct construction test

parent 77c3bab6
......@@ -80,7 +80,7 @@ MyStruct2 = cython.typedef(MyStruct[2])
def test_struct(n, x):
a = cython.declare(MyStruct2)
a[0] = MyStruct(True, data=MyUnion(n=n))
a[1] = MyStruct(is_integral=False, data={x: x})
a[1] = MyStruct(is_integral=False, data={'x': x})
return a[0].data.n, a[1].data.x
import cython as cy
......
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