You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second example in the documentation for match contains states:
Note that match contains will "recurse", so any nested JSON chunks will also be matched using match contains: * def original = { a: 1, b: 2, c: 3, d: { a: 1, b: 2 } } * def expected = { a: 1, c: 3, d: { b: 2 } } * match original contains expected
But this example fails in 0.9.6 (line break added for readability):
assertion failed: path: $.d, actual: {a=1, b=2}, expected: {b=2}, reason: actual value has 1 more key(s) than expected: {a=1}
Indeed, the documentation for the new match contains deep and the 0.9.6 release notes both use this same example to describe the difference between match contains and match contains deep
IMO, this should probably be mentioned in the "breaking changes" section of the release notes, because it will cause existing feature files to fail if they rely on the old recursive-contains behaviour
The text was updated successfully, but these errors were encountered:
The second example in the documentation for
match contains
states:But this example fails in 0.9.6 (line break added for readability):
assertion failed: path: $.d, actual: {a=1, b=2}, expected: {b=2},
reason: actual value has 1 more key(s) than expected: {a=1}
Indeed, the documentation for the new
match contains deep
and the 0.9.6 release notes both use this same example to describe the difference betweenmatch contains
andmatch contains deep
IMO, this should probably be mentioned in the "breaking changes" section of the release notes, because it will cause existing feature files to fail if they rely on the old recursive-contains behaviour
The text was updated successfully, but these errors were encountered: