LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / basic / qa / basic_coverage / test_tdf125637.bas
blobe4eff75c27b33c9c77e3678a0e0eb0999c1a8dc9
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 Option Explicit
11 Function doUnitTest() As String
12 TestUtil.TestInit
13 verify_tdf125637
14 doUnitTest = TestUtil.GetResult()
15 End Function
17 Sub verify_tdf125637
18 On Error GoTo errorHandler
20 ' tdf#125637 - correctly hand names ending with an underscore character at the end of the line
21 Dim test As Long
22 Dim test_ As Long
23 test_ = 1234
24 test = test_
26 ' Without the fix in place, this test would have failed with:
27 ' - Expected: 1234
28 ' - Actual : 0
29 TestUtil.AssertEqual(test, 1234, "Assignment of the variable failed (tdf#125637)")
31 Exit Sub
32 errorHandler:
33 TestUtil.ReportErrorHandler("verify_tdf125637", Err, Error$, Erl)
34 End Sub