Files
loongoffice/basic/qa/basic_coverage/test_ccur_method.vb
arpit1912 54b3ada2e5 tdf#141050 Accept CCur with negative strings
the ImpStringToCurrency now increment the pointer on finding a '+' or '-' in sbxcurr.cxx file

Change-Id: I4a1093ae0b4e52b6a61dc412bd5e7b95b1309e7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112734
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2021-03-20 11:57:48 +01:00

23 lines
591 B
VB.net

'
' This file is part of the LibreOffice project.
'
' This Source Code Form is subject to the terms of the Mozilla Public
' License, v. 2.0. If a copy of the MPL was not distributed with this
' file, You can obtain one at http://mozilla.org/MPL/2.0/.
'
Function doUnitTest as Integer
doUnitTest = 0
' CCUR
if (CCur("100") <> 100) Then Exit Function
' tdf#141050 - passing a number with + sign
if (CCur("+100") <> 100) Then Exit Function
' tdf#141050 - passing a number with - sign
if (CCur("-100") <> -100) Then Exit Function
doUnitTest = 1
End Function