def test_positions_allocator_a(self) -> None: a1 = PositionsAllocator.get(3) a2 = PositionsAllocator.get(4) a3 = PositionsAllocator.get(5) self.assertTrue(mloc(a1) == mloc(a2)) self.assertTrue(mloc(a3) == mloc(a2))
def mloc(self): '''Memory location ''' if self._recache: self._update_array_cache() return mloc(self._labels)
def test_mloc(self, array: np.ndarray) -> None: x = util.mloc(array) self.assertTrue(isinstance(x, int))
def mloc(self): return mloc(self.values)
def mloc(self) -> int: '''{doc_int} ''' if self._recache: self._update_array_cache() return mloc(self._labels)
def test_mloc(self, array): x = util.mloc(array) self.assertTrue(isinstance(x, int))