[YANGTOOLS-358] NormalizeNode equals fails when NormalizeNodes being compared contain binary data which is identical Created: 05/Nov/14 Updated: 10/Apr/22 Resolved: 18/Nov/14 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Moiz Raja | Assignee: | Peter Kajsa |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2326 |
| Priority: | Normal |
| Description |
|
The simples way to test this is to have a model which contains a leaf of type binary. Construct 2 NormalizedNode instances using this model with exactly the same binary content - note that the byte arrays used should be identical in content but the instances of the byte array should be different. After constructing the NormalizedNodes an assertEquals on these two NormalizedNodes fails. |
| Comments |
| Comment by Peter Kajsa [ 11/Nov/14 ] |