From 99197387af040700b7360a48a25628d3ad7eaf28 Mon Sep 17 00:00:00 2001 From: Irevoire Date: Tue, 9 Nov 2021 16:25:53 +0100 Subject: [PATCH] fix the test with the new escaped format --- filter-parser/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter-parser/src/lib.rs b/filter-parser/src/lib.rs index 6276023a9..073057b76 100644 --- a/filter-parser/src/lib.rs +++ b/filter-parser/src/lib.rs @@ -567,8 +567,8 @@ pub mod tests { ("_geoPoint(12, 13, 14)", "`_geoPoint` is a reserved keyword and thus can't be used as a filter expression. Use the `_geoRadius(latitude, longitude, distance) built-in rule to filter on `_geo` coordinates."), ("position <= _geoPoint(12, 13, 14)", "`_geoPoint` is a reserved keyword and thus can't be used as a filter expression. Use the `_geoRadius(latitude, longitude, distance) built-in rule to filter on `_geo` coordinates."), ("position <= _geoRadius(12, 13, 14)", "The `_geoRadius` filter is an operation and can't be used as a value."), - ("channel = 'ponce", "Expression `'ponce` is missing the following closing delimiter: `'`."), - ("channel = \"ponce", "Expression `\"ponce` is missing the following closing delimiter: `\"`."), + ("channel = 'ponce", "Expression `\\'ponce` is missing the following closing delimiter: `'`."), + ("channel = \"ponce", "Expression `\\\"ponce` is missing the following closing delimiter: `\"`."), ("channel = mv OR (followers >= 1000", "Expression `(followers >= 1000` is missing the following closing delimiter: `)`."), ("channel = mv OR followers >= 1000)", "Found unexpected characters at the end of the filter: `)`. You probably forgot an `OR` or an `AND` rule."), ];