From c634d43ac5f9bec5162b2158291045566b12338c Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 21 Oct 2021 17:10:27 +0200 Subject: [PATCH] add a simple test on the filters with an integer --- milli/src/search/facet/filter_parser.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/milli/src/search/facet/filter_parser.rs b/milli/src/search/facet/filter_parser.rs index 9440a44ca..47189841a 100644 --- a/milli/src/search/facet/filter_parser.rs +++ b/milli/src/search/facet/filter_parser.rs @@ -365,6 +365,10 @@ mod tests { Fc::from_str(&rtxn, &index, "channel = 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 ( Fc::from_str(&rtxn, &index, "channel = 'Mister Mv'"),