This commit is contained in:
Tamo 2024-12-17 11:40:28 +01:00
parent fce132a21b
commit 36b897858a
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -1,7 +1,8 @@
use crate::search::insert_geo_distance;
use meilisearch_types::Document;
use serde_json::json;
use crate::search::insert_geo_distance;
#[test]
fn test_insert_geo_distance() {
let value: Document = serde_json::from_str(
@ -110,4 +111,4 @@ fn test_insert_geo_distance_with_coords_as_string() {
let mut document = value.clone();
insert_geo_distance(sorters, &mut document);
assert_eq!(document.get("_geoDistance"), Some(&json!(0)));
}
}