def test_post_split_function_with_LOCALE_and_GROUPLETTERS_returns_fast_int_and_groupletters_and_locale_convert(x): assume(x) try: assert _post_split_function(ns.GROUPLETTERS | ns.LOCALE)(x) == fast_int(x, key=lambda x: get_strxfrm()(_groupletters(x))) except ValueError as e: # handle broken locale lib on BSD. if 'is not in range' not in str(e): raise
def test_string_component_transform_factory_with_LOCALE_and_DUMB_returns_fast_int_and_groupletters_and_locale_convert( x): try: assert _string_component_transform_factory(ns._DUMB | ns.LOCALE)( x) == fast_int(x, key=lambda x: get_strxfrm()(_groupletters(x))) except ValueError as e: # handle broken locale lib on BSD. if 'is not in range' not in str(e): raise
def test_string_component_transform_factory_with_LOCALE_and_DUMB_returns_fast_int_and_groupletters_and_locale_convert_example( ): x = 'hello' assert _string_component_transform_factory(ns._DUMB | ns.LOCALE)(x) == fast_int( x, key=lambda x: get_strxfrm() (_groupletters(x)))
def test_string_component_transform_factory_with_LOCALE_returns_fast_int_and_groupletters( x): assert _string_component_transform_factory(ns.LOCALE)(x) == fast_int( x, key=get_strxfrm())
def test_string_component_transform_factory_with_GROUPLETTERS_returns_fast_int_and_groupletters( x): assert _string_component_transform_factory(ns.GROUPLETTERS)(x) == fast_int( x, key=_groupletters)
def test_string_component_transform_factory_returns_fast_int(x): assert _string_component_transform_factory(0)(py23_str(x)) == fast_int( py23_str(x))
def test_string_component_transform_factory_returns_fast_int_example(): x = 'hello' assert _string_component_transform_factory(0)(x) is fast_int(x) assert _string_component_transform_factory(0)('5007') == fast_int('5007')
def test_string_component_transform_factory_with_LOCALE_returns_fast_int_and_groupletters( x): assume(x) assume(not any(y in bad_uni_chars for y in x)) assert _string_component_transform_factory(ns.LOCALE)(x) == fast_int( x, key=get_strxfrm())
def test_post_split_function_with_LOCALE_returns_fast_int_and_groupletters(x): assume(x) assume(not any(y in bad_uni_chars for y in x)) assert _post_split_function(ns.LOCALE)(x) == fast_int(x, key=get_strxfrm())
def test_post_split_function_with_LOCALE_and_GROUPLETTERS_returns_fast_int_and_groupletters_and_locale_convert_example(): x = 'hello' assert _post_split_function(ns.GROUPLETTERS | ns.LOCALE)(x) == fast_int(x, key=lambda x: get_strxfrm()(_groupletters(x)))
def test_post_split_function_with_LOCALE_returns_fast_int_and_groupletters_example(): x = 'hello' assert _post_split_function(ns.LOCALE)(x) == fast_int(x, key=get_strxfrm())
def test_post_split_function_with_GROUPLETTERS_returns_fast_int_and_groupletters(x): assume(x) assert _post_split_function(ns.GROUPLETTERS)(x) == fast_int(x, key=_groupletters)
def test_post_split_function_with_GROUPLETTERS_returns_fast_int_and_groupletters_example(): x = 'hello' assert _post_split_function(ns.GROUPLETTERS)(x) == fast_int(x, key=_groupletters)
def test_post_split_function_returns_fast_int(x): assume(x) assert _post_split_function(0)(py23_str(x)) == fast_int(py23_str(x))
def test_post_split_function_returns_fast_int_example(): x = 'hello' assert _post_split_function(0)(x) is fast_int(x) assert _post_split_function(0)('5007') == fast_int('5007')