tdf#162786, tdf#161947: Add support for setuptools and pip
[LibreOffice.git] / basic / qa / basic_coverage / zh-CN / test_ccur_zh_CN_locale.bas
blob2d63cd87a72f648cc67ef00fdc5133731b23548a
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_testCCurZhCNLocale
14 doUnitTest = TestUtil.GetResult()
15 End Function
17 Sub verify_testCCurZhCNLocale
18 On Error GoTo errorHandler
20 ' tdf#141050 - characteristic test for CCur() with the zh_CN locale
21 TestUtil.AssertEqual(CCur("75.50"), 75.5, "CCur(75.50)")
22 TestUtil.AssertEqual(CCur("¥75.50"), 75.5, "CCur(¥75.50)")
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_testCCurZhCNLocale", Err, Error$, Erl)
29 End Sub