diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-07-02 18:04:48 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-07-02 19:36:56 +0200 |
commit | 79657c9f5392a9c243d3f3c14fa190b04b6806e9 (patch) | |
tree | a1a74ce67c95878ec539da554b110b88329612ae /basic/qa | |
parent | 0b44f53d99d70e0150ee195254d6f36f80cadb56 (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>
Diffstat (limited to 'basic/qa')
-rw-r--r-- | basic/qa/basic_coverage/test_string_replace.vb | 4 |
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 a2a5f541b3ff..ec51740e17a2 100644 --- a/basic/qa/basic_coverage/test_string_replace.vb +++ b/basic/qa/basic_coverage/test_string_replace.vb @@ -20,6 +20,10 @@ Sub verify_stringReplace() retStr = Replace("a", "abc", "ab") TestUtil.AssertEqual(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""", """", """) + TestUtil.AssertEqual(retStr, ""Straße"""", "replace doesn't crash: " & retStr) + Exit Sub errorHandler: TestUtil.ReportErrorHandler("verify_stringReplace", Err, Error$, Erl) |