forked from amazingfate/loongoffice
It seems that, for some reason, the comparison operators for strings in basic were swapped in the code that evaluates string comparisons at compile-time. This is what caused bug #142180. This commit simply swaps the operators and should fix the bug. Change-Id: I14f90db8598f2f7f8b709e26902986e1f64af576 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115983 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
20 lines
636 B
VB.net
20 lines
636 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
|
|
' tdf#142180 - Invalid text comparison result in Basic
|
|
|
|
doUnitTest = 0
|
|
If ( "Z" < "A" ) Then Exit Function
|
|
If ( "A" > "Z" ) Then Exit Function
|
|
If ( "A" < "A" ) Then Exit Function
|
|
If ( "A" > "A" ) Then Exit Function
|
|
If ( "Z" <= "A" ) Then Exit Function
|
|
If ( "A" >= "Z" ) Then Exit Function
|
|
doUnitTest = 1
|
|
End Function
|