| 1 |
' |
| 2 |
' This file is part of the LibreOffice project. |
| 3 |
' |
| 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/. |
| 7 |
' |
| 8 |
|
| 9 |
Option Explicit |
| 10 |
|
| 11 |
Function doUnitTest as String |
| 12 |
TestUtil.TestInit |
| 13 |
verify_testCCurDaDKLocale |
| 14 |
doUnitTest = TestUtil.GetResult() |
| 15 |
End Function |
| 16 |
|
| 17 |
Sub verify_testCCurDaDKLocale |
| 18 |
On Error GoTo errorHandler |
| 19 |
|
| 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)))") |
| 25 |
|
| 26 |
Exit Sub |
| 27 |
errorHandler: |
| 28 |
TestUtil.ReportErrorHandler("verify_testCCurDaDKLocale", Err, Error$, Erl) |
| 29 |
End Sub |