One more test passing

This commit is contained in:
Louis Dureuil 2024-11-19 15:45:26 +01:00 committed by Clément Renault
parent 52f2fc4c46
commit 9e951baad5
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -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"`."#
);
}