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 Integer
10 dim aVector
as Variant
12 aVector
= Array( Date(), Time(), "Hello", -3.14)
13 If (aVector(2) <> "Hello") Then
16 Else If ( LBound( aVector() ) <> 0 ) Then
19 Else If ( TypeLen(aVector(2)) <> 5 ) Then
22 Else If ( TypeName(aVector(2)) <> "String" ) Then
25 Else If ( UBound( aVector() ) <> 3 ) Then
28 Else If ( VarType(aVector(2)) <> 8 ) Then