mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
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:
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]
|
||||
Reference in new issue
Block a user