Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-2
-
None
Description
goal: keep map closed under the operation of findAll()
map = [a:1, b:2, c:3]
submap = map.subMap(['a','b'])
found = map.findAll
{['a','b'].contains(it.key)}// throws java.lang.AssertionError: Expression: (submap == found).
// Values: submap =
, found = [b=2, a=1]
assert submap == found