Handle searching for matching elements in an array

Add unit tests.
Refactor internals to allow reusing assertion method for finding matches in an array.
This commit is contained in:
sebastian-mrozek committed 2021-03-15 12:51:36 +13:00
1 parent ef3980a3ee
commit 4731ee034e
9 files changed
+256 -54

No files matched your search

@@ -0,0 +1,18 @@
[
{
"b": 2,
"c": 3
},
{
"d": 4,
"e": 5
},
{
"a": 1,
"b": 2,
"c": 3
},
{
"b": 2
}
]
@@ -0,0 +1,20 @@
[
{
"a": 1
},
{
"b": 2
},
{
"c": 3
},
{
"d": 4
},
{
"e": 5
},
{
"f": 6
}
]
@@ -0,0 +1,14 @@
[
{
"id": "tyu",
"c": 3
},
{
"id": "zxy",
"a": 1
},
{
"id": "123",
"b": 2
}
]
@@ -0,0 +1,11 @@
[
{
"a": 1
},
{
"b": 2
},
{
"c": 3
}
]
@@ -1 +0,0 @@
[2, 54, 13, 10]
@@ -1 +0,0 @@
[10, 2, 13, 54]