Skip to content

Commit 05c28e7

Browse files
author
izaid
committed
Uncommented more tests
1 parent c19ecb4 commit 05c28e7

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

dynd/nd/test/test_array_basics.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ def test_nonzero(self):
5252
self.assertFalse(bool(nd.array(0.0, type=ndt.complex_float64)))
5353
self.assertTrue(bool(nd.array(100.0+10.0j, type=ndt.complex_float32)))
5454
self.assertTrue(bool(nd.array(100.0+10.0j, type=ndt.complex_float64)))
55+
"""
5556
# strings
5657
self.assertFalse(bool(nd.array('')))
5758
self.assertFalse(bool(nd.array('', type = ndt.string)))
5859
self.assertTrue(bool(nd.array(' ')))
5960
self.assertTrue(bool(nd.array('test', type = ndt.string)))
60-
"""
6161

6262
def test_nonzero_errors(self):
6363
# Non-scalars raise errors like NumPy, because their
@@ -133,8 +133,6 @@ def test_uint_value_limits(self):
133133
self.assertRaises(OverflowError, nd.array, 0x10000000000000000, type = ndt.uint64)
134134
"""
135135

136-
"""
137-
# UNCOMMENT ME
138136
def test_inf(self):
139137
# Validate nd.inf
140138
self.assertEqual(nd.inf * 2, nd.inf)
@@ -146,10 +144,7 @@ def test_inf(self):
146144
self.assertEqual(nd.type_of(a), ndt.float64)
147145
a = nd.array(nd.inf, type = ndt.float32)
148146
self.assertEqual(nd.as_py(a), nd.inf)
149-
"""
150147

151-
"""
152-
# UNCOMMENT ME
153148
def test_nan(self):
154149
# Validate nd.nan
155150
self.assertTrue(math.isnan(nd.nan))
@@ -163,7 +158,6 @@ def test_nan(self):
163158
self.assertEqual(nd.type_of(a), ndt.float64)
164159
a = nd.array(nd.nan, type = ndt.float32)
165160
self.assertTrue(math.isnan(nd.as_py(a)))
166-
"""
167161

168162
if __name__ == '__main__':
169163
unittest.main(verbosity=2)

0 commit comments

Comments
 (0)