mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-06 00:28:46 +08:00
BUG: contains was renamed to has_substring
This commit is contained in:
@@ -61,7 +61,7 @@ class LabelArrayTestCase(ZiplineTestCase):
|
||||
check_arrays(arr.endswith(s), np_endswith(strs))
|
||||
|
||||
np_contains = np.vectorize(lambda elem: s in elem)
|
||||
check_arrays(arr.contains(s), np_contains(strs))
|
||||
check_arrays(arr.has_substring(s), np_contains(strs))
|
||||
|
||||
def test_compare_to_str_array(self):
|
||||
strs = self.strs
|
||||
|
||||
Reference in New Issue
Block a user