Skip to content

Commit 5c681b0

Browse files
Uncomment test for broadcasting cast.
1 parent a139d7b commit 5c681b0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dynd/nd/test/test_array_cast.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from dynd import nd, ndt
55

66
class TestNDObjectCast(unittest.TestCase):
7-
# def test_broadcast_cast(self):
8-
# a = nd.array(10)
9-
# b = a.cast('3 * int32')
10-
# self.assertEqual(nd.as_py(b), [10, 10, 10])
7+
def test_broadcast_cast(self):
8+
a = nd.array(10)
9+
b = a.cast('3 * int32')
10+
self.assertEqual(nd.as_py(b), [10, 10, 10])
1111

1212
def test_strided_to_fixed(self):
1313
a = nd.array([5,1,2])

0 commit comments

Comments
 (0)