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/.
18 Function doUnitTest() As String
20 verify_testReDimObjects
21 doUnitTest
= TestUtil
.GetResult()
24 Sub verify_testReDimObjects()
25 On Error GoTo errorHandler
27 ' tdf#136755 - ReDim did not work on an array of objects
28 Dim aPropertyValues(1) As New com
.sun
.star
.beans
.PropertyValue
29 TestUtil
.AssertEqual(UBound(aPropertyValues
), 1, "UBound(aPropertyValues)")
30 ReDim aPropertyValues(5) As com
.sun
.star
.beans
.PropertyValue
31 TestUtil
.AssertEqual(UBound(aPropertyValues
), 5, "UBound(aPropertyValues)")
33 ' tdf#124008 - ReDim did not work on an array of individual declared types
34 Dim aType(1) As testType
35 TestUtil
.AssertEqual(UBound(aType
), 1, "UBound(aType)")
36 ReDim aType(5) As testType
37 TestUtil
.AssertEqual(UBound(aType
), 5, "UBound(aType)")
41 TestUtil
.ReportErrorHandler("verify_testReDimObjects", Err
, Error$, Erl
)