File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ def test_format_string_key_for_error_returns_blank_fallback_for_empty_keys():
7373 assert format_string_key_for_error (" " , max_length = 20 ) == "<blank key>"
7474
7575
76+ def test_format_string_key_for_error_preserves_placeholder_for_control_only_keys ():
77+ assert format_string_key_for_error ("\n \t \r " , max_length = 20 ) == "???"
78+
79+
7680def test_format_string_key_for_error_supports_custom_blank_fallback ():
7781 assert (
7882 format_string_key_for_error (" " , max_length = 20 , blank_fallback = "<empty>" )
@@ -126,3 +130,7 @@ def test_format_string_key_for_error_truncates_custom_blank_fallback():
126130 )
127131 == "... (truncated)"
128132 )
133+
134+
135+ def test_normalize_display_text_preserves_placeholder_for_control_only_values ():
136+ assert normalize_display_text ("\n \t \r " , max_length = 20 ) == "???"
You can’t perform that action at this time.
0 commit comments