Forgus / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

PowerAssert's result expression for nested "==" is wrong #252

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. append "assert (1 == 1) == false" to "when:" clause of any spec
2. run the spec
3. you'll see the following result:

( (1 == 1) == false)
     |     |
     |     false
     false (java.lang.Boolean)

'false' of (1 == 1) is wrong. it must be 'true'

I used Grails 2.0.3 and Grails Spock plugin 0.6.

Original issue reported on code.google.com by nobe...@gmail.com on 16 May 2012 at 3:20

GoogleCodeExporter commented 8 years ago
Thanks for reporting this. Fortunately it was only a rendering bug.

Original comment by pnied...@gmail.com on 20 May 2012 at 12:39

GoogleCodeExporter commented 8 years ago

Original comment by pnied...@gmail.com on 20 May 2012 at 12:40