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 Function doUnitTest() As String
15 doUnitTest
= TestUtil
.GetResult()
18 Sub verify_testTimeSerial()
20 On Error GoTo errorHandler
23 rem timeVal = "5:45:00"
24 rem TestUtil.AssertEqual(TimeSerial(12 - 6, -15, 0), timeVal, "TimeSerial(12 - 6, -15, 0)")
27 TestUtil
.AssertEqual(TimeSerial(12, 30, 0), timeVal
, "TimeSerial(12, 30, 0)")
29 rem timeVal = "11:30:00"
30 rem TestUtil.AssertEqual(TimeSerial(10, 90, 0), timeVal, "TimeSerial(10, 90, 0)")
34 TestUtil
.ReportErrorHandler("verify_testTimeSerial", Err
, Error$, Erl
)