more tests cases regarding wild functionality

modified:   README.rst
	modified:   nested_lookup/nested_lookup.py
	modified:   setup.py
	modified:   test_nested_lookup.py
This commit is contained in:
Russell Ballestrini 2019-06-25 15:20:42 -07:00
parent b6acaca980
commit 4b8eeaf969
4 changed files with 14 additions and 5 deletions

View file

@ -15,7 +15,7 @@ def nested_lookup(key, document, wild=False, with_keys=False):
def _is_case_insensitive_substring(a, b):
"""return True if `a` is a case insensitive substring of `b`, else False"""
return isinstance(a, str) and isinstance(b, str) and a.lower() in b.lower()
return str(a).lower() in str(b).lower()
def _nested_lookup(key, document, wild=False, with_keys=False):