add a simple test on the filters with an integer

This commit is contained in:
Tamo 2021-10-21 17:10:27 +02:00
parent 6c15f50899
commit c634d43ac5
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -365,6 +365,10 @@ mod tests {
Fc::from_str(&rtxn, &index, "channel = Ponce"), Fc::from_str(&rtxn, &index, "channel = Ponce"),
Fc::Operator(0, Operator::Equal(None, S("ponce"))), Fc::Operator(0, Operator::Equal(None, S("ponce"))),
), ),
(
Fc::from_str(&rtxn, &index, "subscribers = 12"),
Fc::Operator(2, Operator::Equal(Some(12.), S("12"))),
),
// test all the quotes and simple quotes // test all the quotes and simple quotes
( (
Fc::from_str(&rtxn, &index, "channel = 'Mister Mv'"), Fc::from_str(&rtxn, &index, "channel = 'Mister Mv'"),