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/.
11 Function doUnitTest
as String
13 verify_testCCurDaDKLocale
14 doUnitTest
= TestUtil
.GetResult()
17 Sub verify_testCCurDaDKLocale
18 On Error GoTo errorHandler
20 ' tdf#141050 - characteristic test for CCur() with the da_DK locale
21 TestUtil
.AssertEqual(CCur("75,50"), 75.5, "CCur(""75,50"")")
22 TestUtil
.AssertEqual(CCur("75,50 kr."), 75.5, "CCur(""75,50 kr."")")
23 ' tdf#162724 - CStr must create strings that allow CCur round-trip
24 TestUtil
.AssertEqual(CCur(CStr(CCur(75.50))), 75.5, "CCur(CStr(CCur(75.50)))")
28 TestUtil
.ReportErrorHandler("verify_testCCurDaDKLocale", Err
, Error$, Erl
)