Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.5.2
-
None
-
None
Description
The test case at the bottom runs with 1.5.0 and 1.5.1 and fails with 1.5.2.
The failing test with 1.5.2 is testAssignmentWithMap
class AssignmentTest extends GroovyTestCase { final String SOME_METHOD_VALUE = 'someMethodValue' final String TEST_NAME = 'someName' String s Map names void setUp() { names = [:] } void testAssignmentWithString() { assertEquals(SOME_METHOD_VALUE, someMethod()) } void testAssignmentWithMap() { assertEquals(TEST_NAME, addName(TEST_NAME)) } String someMethod() { s = SOME_METHOD_VALUE } String addName(String name) { names[name] = name } }