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
11 aVector
= Array( Date(), Time(), "Hello", -3.14)
13 If (Choose(2, 1, 100, 3) <> 100) Then
16 Else If (False = True) Then
19 Else If ( IIF(True, 10, 12) <> 10 ) Then
22 Else If ( IsArray( aVector
) = False ) Then
25 Else If ( IsDate( aVector(1) ) = False ) Then
28 Else If ( IsEmpty( aVector(2) ) ) Then
33 Else If ( IsNull( aVector
) ) Then
36 Else If ( IsNumeric( aVector(3) ) = False ) Then
40 Else If ( Switch( False, aVector(0),_
43 True, aVector(3) ) <> aVector(1) ) Then