Fix default value of Emscripten --with-main-module
[LibreOffice.git] / basic / qa / vba_tests / timeserial.vb
blobbe2c9d2bc8cf8ebc000b7e07d743f7706816eef4
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 Option VBASupport 1
10 Option Explicit
12 Function doUnitTest() As String
13 TestUtil.TestInit
14 verify_testTimeSerial
15 doUnitTest = TestUtil.GetResult()
16 End Function
18 Sub verify_testTimeSerial()
19 Dim timeVal As Date
20 On Error GoTo errorHandler
22 rem bug 114229
23 rem timeVal = "5:45:00"
24 rem TestUtil.AssertEqual(TimeSerial(12 - 6, -15, 0), timeVal, "TimeSerial(12 - 6, -15, 0)")
26 timeVal = "12:30:00"
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)")
32 Exit Sub
33 errorHandler:
34 TestUtil.ReportErrorHandler("verify_testTimeSerial", Err, Error$, Erl)
35 End Sub