LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / basic / qa / basic_coverage / test_string_literal_comparison.bas
blob81446328448e7c385e9dca8427674b19e5b8aae9
1 ' This file is part of the LibreOffice project.
3 ' This Source Code Form is subject to the terms of the Mozilla Public
4 ' License, v. 2.0. If a copy of the MPL was not distributed with this
5 ' file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 Option Explicit
10 Function doUnitTest as String
11 ' tdf#142180 - Invalid text comparison result in Basic
13 doUnitTest = "FAIL"
14 If ( "Z" < "A" ) Then Exit Function
15 If ( "A" > "Z" ) Then Exit Function
16 If ( "A" < "A" ) Then Exit Function
17 If ( "A" > "A" ) Then Exit Function
18 If ( "Z" <= "A" ) Then Exit Function
19 If ( "A" >= "Z" ) Then Exit Function
20 doUnitTest = "OK"
21 End Function