You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/10/10 11:26:00 UTC

[jira] [Commented] (GROOVY-8838) assert in groovy does not produce any result

    [ https://issues.apache.org/jira/browse/GROOVY-8838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16644843#comment-16644843 ] 

Paul King commented on GROOVY-8838:
-----------------------------------

That looks like correct behavior.

> assert in groovy does not produce any result
> --------------------------------------------
>
>                 Key: GROOVY-8838
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8838
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-jdk
>    Affects Versions: 2.4.3
>            Reporter: Thulsi Doss Krishnan
>            Priority: Major
>              Labels: simple-assert-
>         Attachments: GroovyAssert.JPG
>
>
> Hi running a simple assert does not produce any result in the eclipse IDE
> def map1 = [user: 'mrhaki', likes: 'Groovy', age: 37]
> def map2 = [age: 37.0, likes: 'Groovy', user: 'mrhaki']
> def map3 = [user: 'Hubert Klein Ikkink', likes: 'Groovy']
> assert map1.equals(map2)
> assert map1 == map2
> assert !map1.equals(map3)
> assert map2 != map3



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)