Hi all,
Could someone tell me more about the ABLUnit OpenEdge.Core.Assert:isTrue() method?
The doc mentions only one with a single logicalFlag param, but an overload provides a second char parameter. I've tried it without noticing the difference.
Note there are other similar cases with this 2nd char param like isEmpty or isDecimal or isAvailable(handle, char)
Somehow, I was wondering if this option char param could handle a kind of information detail/comment that would appear in some log.
So far, it seems we have to handle each assertion test in an individual method in order to figure out what has failed. How guys do you do that on your side?
Have I missed an ABLUnit sample project somewhere?
Thanks
/SL
Hello Sebastien,
ABLUnit provides Assert method in two variants.
Assert:IsTrue(logicalVar)
Assert:IsTrue(logicalVar,logicalVarName)
Functionality of both methods is same until assertion fails.
If assertion fails,
1. First method - simply provides message saying "Expected TRUE but was FALSE".
2. Second method - Provides details saying "<logicalVarName> is not true".
As you mentioned, second method provides detailed information of the failure. It is up to the user to use which method. If user wants details of variable/function being failed, they can make use of the second one. As far as i know, there are no ABLUnit sample projects being shipped for .
-DivyaTheja
Thank you Divya, I am glad to see your description meets what I was hoping :)
That being said, with OE11.5 the Second method of isFalse(someFlag, "someBadCondition) just reports :
Expected FALSE but was: TRUE
and not the "<someBadCondition>" is not false" that you explained.
Did I miss something or is this going to be available beyond 11.5?
Kind regards
/SL
Thank you Divya, I am glad to see your description meets what I was hoping :)
That being said, with OE11.5 the Second method of isFalse(someFlag, "someBadCondition) just reports :
Expected FALSE but was: TRUE
and not the "<someBadCondition>" is not false" that you explained.
Did I miss something or is this going to be available beyond 11.5?
Kind regards
/SL
Flag this post as spam/abuse.
Thank you Divya, now I can also get the additional char info. It seems that under some circumstances, my propath was inheriting from an ablunit.pl of 11.4 on top of the one of 11.5. Perhaps this can explain that...
Kind regards
/SL