summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
Diffstat (limited to 'basic')
-rw-r--r--basic/qa/basic_coverage/test_string_replace.vb4
1 files changed, 4 insertions, 0 deletions
diff --git a/basic/qa/basic_coverage/test_string_replace.vb b/basic/qa/basic_coverage/test_string_replace.vb
index e2e9ce35962b..8404aaf4961e 100644
--- a/basic/qa/basic_coverage/test_string_replace.vb
+++ b/basic/qa/basic_coverage/test_string_replace.vb
@@ -29,6 +29,10 @@ Function verify_stringReplace() As String
retStr = Replace("a", "abc", "ab")
TestLog_ASSERT retStr, "a", "different length of search and replace string: " & retStr
+ ' tdf#143081 - Without the fix in place, this test would have crashed here
+ retStr = Replace("""Straße""", """", """)
+ TestLog_ASSERT retStr, ""Straße"""", "replace doesn't crash: " & retStr
+
result = result & Chr$(10) & "Tests passed: " & passCount & Chr$(10) & "Tests failed: " & failCount & Chr$(10)
verify_stringReplace = result
End Function