Project:
View Revisions: Issue #49170 | [ Back to Issue ] | ||
Summary | 0049170: matchesObject should not compare array properties with strict equality | ||
Revision | 2022-04-29 07:48 by caristu | ||
Description | Given: json1 = { arrayProperty: [{p1: 'A', p2: 'B'}] } json2 = { arrayProperty: [{p1: 'A'}] } Then: assertThat(json1, matchesObject(json2)) must be true. But currently this is not being asserted correctly as it returns false. |
||
Revision | 2022-04-29 07:48 by caristu | ||
Description | Given: json1 = { arrayProperty: [{p1: 'A', p2: 'B'}] } json2 = { arrayProperty: [{p1: 'A'}] } Then assertThat(json1, matchesObject(json2)) must be true. But currently this is not being asserted correctly as it returns false. |
||
Revision | 2022-04-29 07:48 by caristu | ||
Description | Given: json1 = { arrayProperty: [{p1: 'A', p2: 'B'}] } json2 = { arrayProperty: [{p1: 'A'}] } assertThat(json1, matchesObject(json2)) must be true. But currently this is not being asserted correctly as it returns false. |
||
Revision | 2022-04-29 07:47 by caristu | ||
Description | Having: json1 = { arrayProperty: [{p1: 'A', p2: 'B'}] } json2 = { arrayProperty: [{p1: 'A'}] } assertThat(json1, matchesObject(json2)) must be true. But currently this is not being asserted correctly as it returns false. |
Copyright © 2000 - 2009 MantisBT Group |