Hi,

Playing with the failures which Groovy 3 brought to Spock tests itself,
I noticed that Groovy 3 no longer rejects += and -= if used in an
assertion statement:

> def a = 1
> assert a += 1 //passes
> assert a == 2 //passes

While it behaves consistently, I wonder if that change it was purposely
(it was failing in Groovy 2) or the check should be enhanced:
https://github.com/apache/groovy/commit/a17b9eb85835a5eaa306a893a0a8bcd51a49e299#diff-05fe8708ce3207739a2cb39a97426e8dR345
?

Marcin

-- 
https://blog.solidsoft.info/ - Working code is not enough

Reply via email to