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/.
12 Enum CountDown
' Values get ROUNDED to Int32
17 ONE
= 286.0E-2 ' equals 3
22 ''' test_vba.cxx main entry point '''
25 doUnitTest
= TestUtil
.GetResult()
34 a
: TestUtil
.AssertEqual(.ONE
, 3, ".ONE")
36 b
: TestUtil
.AssertEqual(.TWO
, -3, ".TWO")
38 c
: TestUtil
.AssertEqual(TypeName(.FOUR
), "Long", "TypeName(.FOUR)")
41 sum
= .FIVE
+ .FOUR
+ .THREE
+ .TWO
+ .ONE
+ .LIFT_OFF
42 TestUtil
.AssertEqual(sum
, 12, "sum")
50 TestUtil
.ReportErrorHandler("ENUM_TestCases", Err
, Error$, Erl
)