mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-04 12:30:07 +08:00
BUG: contains was renamed to has_substring
This commit is contained in:
1 parent
5cd7d79818
commit
7a65121e6e
1 file changed
+1
-1
@@ -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