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

Ilya Maykov commented on THRIFT-369:
------------------------------------

I just tested this against thrift 0.6.0 and equality tests are working fine. 
I'll add the test code to the test suite sometime soon, at which point you can 
verify and mark as resolved.

> sets and maps break equality
> ----------------------------
>
>                 Key: THRIFT-369
>                 URL: https://issues.apache.org/jira/browse/THRIFT-369
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>            Reporter: Bryan Duxbury
>            Priority: Minor
>
> I've found that two structs that have value-equivalent sets or maps as values 
> for some reason cause struct's == to fail. This is inconsistent with other 
> languages.
> For example, this struct: 
> {code}
> struct {
>   set_byte_map: <Set: { {1=>2} }>,
>   map_byte_map: { {1=>1} => 1 }
> }
> {code}
> created twice independently will not be ==.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to