office-gobmx/basic/qa/basic_coverage/test_mid_replace_more.vb
Stephan Bergmann d3368c174f Add reference to test code
...that had inadvertently been missing from the file's inital commit,
a6a48eeef1 "tdf#121325: Replace all of given
length, even if replacement is shorter"

Change-Id: I2a09e1d1ee94480d5615106a4e28958218d9b4c7
Reviewed-on: https://gerrit.libreoffice.org/63334
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-11-13 21:45:37 +01:00

19 lines
568 B
VB.net

'
' This file is part of the LibreOffice project.
'
' This Source Code Form is subject to the terms of the Mozilla Public
' License, v. 2.0. If a copy of the MPL was not distributed with this
' file, You can obtain one at http://mozilla.org/MPL/2.0/.
'
' cf. examples at <https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/
' statements/mid-statement>:
Function doUnitTest as Integer
s = "The fox jumps"
Mid(s, 5, 3, "duck")
If (s = "The duc jumps") Then
doUnitTest = 1
Else
doUnitTest = 0
End If
End Function