3 Function doUnitTest() As String
5 verify_testIsMissingCascade
6 doUnitTest
= TestUtil
.GetResult()
9 Sub verify_testIsMissingCascade()
11 On Error GoTo errorHandler
13 ' tdf#136143 - test cascading optionals in order to prevent type conversion errors, because
14 ' optional arguments are of type SbxERROR and set to not fixed.
15 TestUtil
.AssertEqual(TestOpt(), 2, "Cascading optionals")
19 TestUtil
.ReportErrorHandler("verify_testIsMissingCascade", Err
, Error$, Erl
)
22 Function TestOpt(Optional A
)
23 TestOpt
= TestOptCascade(A
)
26 Function TestOptCascade(Optional A
)
27 If IsMissing(A
) Then A
= 2