LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / basic / qa / basic_coverage / test_mid_replace_less.bas
blob00885638871f856cf659e64fb6b372f1087baf27
2 ' This file is part of the LibreOffice project.
4 ' This Source Code Form is subject to the terms of the Mozilla Public
5 ' License, v. 2.0. If a copy of the MPL was not distributed with this
6 ' file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 ' cf. <https://bugs.documentfoundation.org/show_bug.cgi?id=62090> "Mid statement doesn't work as
10 ' expected":
11 Function doUnitTest as String
12 s = "The lightbrown fox"
13 Mid(s, 5, 10, "lazy")
14 If (s = "The lazy fox") Then
15 doUnitTest = "OK"
16 Else
17 doUnitTest = "FAIL"
18 End If
19 End Function