tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / basic / qa / basic_coverage / da-DK / test_ccur_da_DK_locale.bas
blobff4704fcc3db7efcbc8df461f20e87328109231a
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_testCCurDaDKLocale
14 doUnitTest = TestUtil.GetResult()
15 End Function
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)))")
26 Exit Sub
27 errorHandler:
28 TestUtil.ReportErrorHandler("verify_testCCurDaDKLocale", Err, Error$, Erl)
29 End Sub