BAEL-2347: Fixed test about return value of assignment operator.
This commit is contained in:
parent
f5b4a5e702
commit
3b42c48820
|
@ -24,8 +24,8 @@ public class CompoundOperatorsTest {
|
|||
|
||||
@Test
|
||||
public void whenAssignmentOperatorIsUsed_thenValueIsReturned() {
|
||||
long x = 5;
|
||||
long y = (x=3);
|
||||
long x = 1;
|
||||
long y = (x+=2);
|
||||
|
||||
assertEquals(3, y);
|
||||
assertEquals(y, x);
|
||||
|
|
Loading…
Reference in New Issue