Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fslev committed Jan 26, 2023
1 parent d9c73bf commit 9e144ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ compile 'com.github.fslev:json-compare:<version.from.maven.central>'

### Match any JSON convertible Java objects
```javascript
// expected with regex
String expectedString = "{\"a\":1, \"b\": [4, \"ipsum\", \"\\\\d+\"]}";
String actualString = "{\"a\":1, \"b\":[\"ipsum\", 4, 5], \"c\":true}";
JSONCompare.assertMatches(expectedString, actualString); // assertion passes
Expand Down

0 comments on commit 9e144ca

Please sign in to comment.