Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
1.0-JSR-2
-
None
Description
Objects should be able to implement their own logic about being true or false.
asBool() can be simplified.
e.g. Collections can implement isTrue() as size()>0, Maps as !isEmpty(), etc.
Attachments
Issue Links
- is duplicated by
-
GROOVY-3804 Ability to customize Groovy Truth
- Closed
-
GROOVY-2067 Truth as a method.
- Closed