Debian Codegraph @

basic/qa/basic_coverage/test_tdf125637.bas

raw
1 '
2 ' This file is part of the LibreOffice project.
3 '
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/.
7 '
8
9 Option Explicit
10
11 Function doUnitTest() As String
12 TestUtil.TestInit
13 verify_tdf125637
14 doUnitTest = TestUtil.GetResult()
15 End Function
16
17 Sub verify_tdf125637
18 On Error GoTo errorHandler
19
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_
25
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)")
30
31 Exit Sub
32 errorHandler:
33 TestUtil.ReportErrorHandler("verify_tdf125637", Err, Error$, Erl)
34 End Sub