LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / basic / qa / basic_coverage / test_tdf111313.bas
blob3a2604732e7cb7c77f283a12ab42b355ac44f601
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 Function doUnitTest as String
11 ' Without the fix in place, this test would have crashed
12 s = "abc"
13 Mid(s,1) = "d"
14 If (s = "d") Then
15 doUnitTest = "OK"
16 Else
17 doUnitTest = "FAIL"
18 End If
19 End Function