Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
trzysiek committed Dec 21, 2024
1 parent c1a9b05 commit b661a61
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions quesma/testdata/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -2320,6 +2320,29 @@ var TestsSearch = []SearchTestCase{
},
[]string{},
},
{ // [40]
"ids",
`{
"query": {
"ids": {
"values": [
"323032342d31322d32312030373a32393a30332e333637202b3030303020555443q1",
"323032342d31322d32312030373a32393a30322e393932202b3030303020555443q3"
]
}
},
"track_total_hits": false
}`,
[]string{`"field" REGEXP 'a?'`},
model.ListAllFields,
[]string{
`SELECT "message" ` +
`FROM ` + TableName + ` ` +
`WHERE "field" REGEXP 'a\?' ` +
`LIMIT 10`,
},
[]string{},
},
}

var TestSearchRuntimeMappings = []SearchTestCase{
Expand Down

0 comments on commit b661a61

Please sign in to comment.