History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-2452
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Paul King
Reporter: René de Bloois
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
groovy

'in' with an array always returns false

Created: 27/Dec/07 08:55 AM   Updated: 08/Feb/08 01:26 AM
Component/s: None
Affects Version/s: 1.5.1
Fix Version/s: 1.5.2

Time Tracking:
Not Specified

Environment: java 6, Windows XP SP2


 Description  « Hide
'in' always returns false with an array:
String[] array1 = [ "test1", "test2" ]
assert !( "test1" in array1 )
assert !( "test3" in array1 )


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guillaume Laforge - 27/Dec/07 09:14 AM
Right, arrays should behave like collections.

Paul King - 28/Dec/07 09:02 PM
now isCase(Object, value) is array aware

Paul King - 08/Feb/08 01:26 AM
close off release 1.5.4