BAEL-2347: Fixed test about return value of assignment operator.

This commit is contained in:
Dionis Prifti 2018-11-29 21:05:59 +01:00
parent f5b4a5e702
commit 3b42c48820
1 changed files with 2 additions and 2 deletions

View File

@ -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);