tdf#154285 Check upper bound of arguments in SbRtl_Minute function
[LibreOffice.git] / basic / qa / basic_coverage / test_format_function.bas
blob00d7d54a9f3f065453c31f73a87df92890b143e3
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 Explicit
11 Function doUnitTest as String
12 TestUtil.TestInit
13 verify_testFormat
14 doUnitTest = TestUtil.GetResult()
15 End Function
17 Sub verify_testFormat
18 On Error GoTo errorHandler
20 Dim d As Date
21 d = "2024-09-16 17:03:30"
22 TestUtil.AssertEqual(Format(d, "YYYY-MM-DD"), "2024-09-16", "Format(d, ""YYYY-MM-DD"")")
24 Exit Sub
25 errorHandler:
26 TestUtil.ReportErrorHandler("verify_testFormat", Err, Error$, Erl)
27 End Sub