| 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 |
' cf. <https://bugs.documentfoundation.org/show_bug.cgi?id=62090> "Mid statement doesn't work as |
| 10 |
' expected": |
| 11 |
Function doUnitTest as String |
| 12 |
s = "The lightbrown fox" |
| 13 |
Mid(s, 5, 10, "lazy") |
| 14 |
If (s = "The lazy fox") Then |
| 15 |
doUnitTest = "OK" |
| 16 |
Else |
| 17 |
doUnitTest = "FAIL" |
| 18 |
End If |
| 19 |
End Function |