MCPcopy Create free account
hub / github.com/numpy/numpy / test_unique_zero_sized

Method test_unique_zero_sized

numpy/lib/tests/test_arraysetops.py:822–832  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

820 assert_equal(np.unique(all_nans, return_counts=True), (ua, ua_cnt))
821
822 def test_unique_zero_sized(self):
823 # test for zero-sized arrays
824 types = self.get_types()
825 types.extend('SU')
826 for dt in types:
827 a = np.array([], dt)
828 b = np.array([], dt)
829 i1 = np.array([], np.int64)
830 i2 = np.array([], np.int64)
831 c = np.array([], np.int64)
832 self.check_all(a, b, i1, i2, c, dt)
833
834 def test_unique_subclass(self):
835 class Subclass(np.ndarray):

Callers

nothing calls this directly

Calls 2

get_typesMethod · 0.95
check_allMethod · 0.95

Tested by

no test coverage detected