We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b77dc5e commit 0357843Copy full SHA for 0357843
1 file changed
wolframclient/tests/serializers/wxf_pythonarray.py
@@ -30,3 +30,9 @@ def test_python_array(self):
30
export(arr, target_format="wxf"),
31
export(NumericArray(array, wl_type, shape=shape), target_format="wxf"),
32
)
33
+
34
+ def test_generators(self):
35
+ self.assertEqual(
36
+ export(numpy.arange(10).astype(numpy.int8), target_format="wxf"),
37
+ export(NumericArray((i for i in range(10)), "Integer8", shape=(10, )), target_format="wxf"),
38
+ )
0 commit comments