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

Method test_basic

numpy/lib/tests/test_function_base.py:444–451  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

442 return output
443
444 def test_basic(self):
445 choices = self.choices
446 conditions = self.conditions
447 assert_array_equal(select(conditions, choices, default=15),
448 self._select(conditions, choices, default=15))
449
450 assert_equal(len(choices), 3)
451 assert_equal(len(conditions), 3)
452
453 def test_broadcasting(self):
454 conditions = [np.array(True), np.array([False, True, False])]

Callers

nothing calls this directly

Calls 4

_selectMethod · 0.95
assert_array_equalFunction · 0.90
selectFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected