LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / basic / qa / basic_coverage / test_erl_method.bas
blobab834650c9988c513b13697bc3d5200a187bfc1e
1 ' This file is part of the LibreOffice project.
3 ' This Source Code Form is subject to the terms of the Mozilla Public
4 ' License, v. 2.0. If a copy of the MPL was not distributed with this
5 ' file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 Function doUnitTest as String
9 ' ERL
10 On Error GoTo ErrorHandler ' Set up error handler
11 Dim nVar As Integer
12 nVar = 0
13 nVar = 1/nVar
14 doUnitTest = "FAIL"
15 Exit Function
16 ErrorHandler:
17 If ( Erl <> 13 ) Then
18 doUnitTest = "FAIL"
19 Else
20 doUnitTest = "OK"
21 Endif
22 End Function