summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-07-02 18:04:48 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-07-13 11:05:50 +0200
commitfadccf7e6e9a46c54de9578dd708623495ba8e80 (patch)
tree4cc161de1ec02542eee41aaac5d9ce3fe8672db4 /basic
parentedf806974728a8f4da3f474eb8c04a55521c0a86 (diff)
tdf#143081: basic_macros: Add unittest
Change-Id: I2d9fa23627f40a2398288b1ee7f5bfd4de4a6131 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118326 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118817
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""", """", "&quot;")
+ TestLog_ASSERT retStr, "&quot;Straße""&quot;", "replace doesn't crash: " & retStr
+
result = result & Chr$(10) & "Tests passed: " & passCount & Chr$(10) & "Tests failed: " & failCount & Chr$(10)
verify_stringReplace = result
End Function