From f69dde569559038428bbe12fd347622492543e47 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Tue, 19 Nov 2024 15:45:26 +0100 Subject: [PATCH] One more test passing --- crates/milli/src/update/index_documents/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/milli/src/update/index_documents/mod.rs b/crates/milli/src/update/index_documents/mod.rs index 35d9e2d16..49407f911 100644 --- a/crates/milli/src/update/index_documents/mod.rs +++ b/crates/milli/src/update/index_documents/mod.rs @@ -1005,7 +1005,7 @@ mod tests { .unwrap_err(); assert_eq!( &error.to_string(), - r#"Could not find latitude in the document with the id: `0`. Was expecting a `_geo.lat` field."# + r#"Could not find latitude in the document with the id: `"0"`. Was expecting a `_geo.lat` field."# ); let error = index @@ -1015,7 +1015,7 @@ mod tests { .unwrap_err(); assert_eq!( &error.to_string(), - r#"Could not find longitude in the document with the id: `0`. Was expecting a `_geo.lng` field."# + r#"Could not find longitude in the document with the id: `"0"`. Was expecting a `_geo.lng` field."# ); let error = index @@ -1025,7 +1025,7 @@ mod tests { .unwrap_err(); assert_eq!( &error.to_string(), - r#"Could not parse latitude in the document with the id: `0`. Was expecting a finite number but instead got `"lol"`."# + r#"Could not parse latitude in the document with the id: `"0"`. Was expecting a finite number but instead got `"lol"`."# ); let error = index @@ -1035,7 +1035,7 @@ mod tests { .unwrap_err(); assert_eq!( &error.to_string(), - r#"Could not parse latitude in the document with the id: `0`. Was expecting a finite number but instead got `[12,13]`."# + r#"Could not parse latitude in the document with the id: `"0"`. Was expecting a finite number but instead got `[12,13]`."# ); let error = index @@ -1045,7 +1045,7 @@ mod tests { .unwrap_err(); assert_eq!( &error.to_string(), - r#"Could not parse longitude in the document with the id: `0`. Was expecting a finite number but instead got `"hello"`."# + r#"Could not parse longitude in the document with the id: `"0"`. Was expecting a finite number but instead got `"hello"`."# ); }