Tomas Cohen Arazi
367a90ca18
In an attempt to add (even) more tests for this library, we wanted to add tests for the return values initialization and then hit a wall when trying to add tests: Test::More tries to compare in string context first [1], and when you force integer context (by using cmp_ok + '==') it tells '==' is not overridden for the class. So this patch adds those tests, and also the overloaded '==' operator that is required for such tests. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/Koha/Result/Boolean.t => SUCCESS: Tests pass 3. Sign off :-D [1] https://metacpan.org/pod/Test::More#Overloaded-objects Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> |
||
---|---|---|
.. | ||
Authority | ||
I18N/po/xx_XX/LC_MESSAGES | ||
Middleware | ||
Object | ||
Plugins | ||
REST/Plugin | ||
Result | ||
SearchEngine | ||
Util | ||
Config.t | ||
Email.t | ||
Exceptions.t | ||
I18N.t | ||
ItemType.t | ||
RDF.t | ||
Script.t | ||
Script_cron.t | ||
sleep.pl | ||
wait.pl | ||
Z3950responder.t |