Skip to content

Commit f2efdc7

Browse files
Uncommented an old arrfunc test. Renamed test_arrfunc to test_callable.
1 parent 8426b0e commit f2efdc7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

dynd/nd/test/test_arrfunc.py renamed to dynd/nd/test/test_callable.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,14 @@
1313
else:
1414
c_ssize_t = ctypes.c_int64
1515

16-
class TestArrFunc(unittest.TestCase):
16+
class TestCallable(unittest.TestCase):
1717
pass
1818

19-
"""
2019
def test_creation(self):
2120
af = nd.empty('(float32) -> int32')
22-
self.assertEqual(nd.type_of(af).type_id, 'arrfunc')
21+
self.assertTrue(ndt.type('Callable').match(nd.type_of(af)))
2322
# Test there is a string version of a NULL arrfunc
2423
self.assertTrue(str(af) != '')
25-
# Test there is a string version of an initialized arrfunc
26-
af = _lowlevel.make_arrfunc_from_assignment(
27-
ndt.float32, ndt.int64, "nocheck")
28-
self.assertTrue(str(af) != '')
29-
self.assertEqual(nd.type_of(af), ndt.type("(int64) -> float32"))
30-
"""
3124

3225
# def test_arrfunc_constructor(self):
3326
# af = nd.apply(lambda x, y : [x, y], '(int, int) -> {x:int, y:int}')

0 commit comments

Comments
 (0)