Skip to content

Commit b6cdbaa

Browse files
refactor readme
1 parent e76dd50 commit b6cdbaa

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ JSONCompare.assertMatches(expected1, actual1, Set.of(CompareMode.JSON_OBJECT_NON
109109
==>
110110
org.opentest4j.AssertionFailedError: FOUND 1 DIFFERENCE(S):
111111

112+
112113
_________________________DIFF__________________________
113-
Actual JSON OBJECT has extra fields
114+
$ -> Actual JSON OBJECT has extra fields
114115
```
115116
...same for **JSON_ARRAY_NON_EXTENSIBLE**
116117

@@ -130,18 +131,13 @@ JSONCompare.assertMatches(expected1, actual1, Set.of(CompareMode.JSON_ARRAY_STRI
130131
==>
131132
org.opentest4j.AssertionFailedError: FOUND 2 DIFFERENCE(S):
132133

133-
_________________________DIFF__________________________
134-
JSON ARRAY elements differ at position 1:
135-
"lorem"
136-
________diffs________
137134

135+
_________________________DIFF__________________________
136+
$[0]
138137
Expected value: "lorem" But got: false
139138

140139
_________________________DIFF__________________________
141-
JSON ARRAY elements differ at position 3:
142-
false
143-
________diffs________
144-
140+
$[2]
145141
Expected boolean: false But got: "lorem"
146142
```
147143

0 commit comments

Comments
 (0)