mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-12-18 17:35:58 +08:00
fmt
This commit is contained in:
parent
fce132a21b
commit
36b897858a
@ -1,7 +1,8 @@
|
|||||||
use crate::search::insert_geo_distance;
|
|
||||||
use meilisearch_types::Document;
|
use meilisearch_types::Document;
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
|
use crate::search::insert_geo_distance;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_insert_geo_distance() {
|
fn test_insert_geo_distance() {
|
||||||
let value: Document = serde_json::from_str(
|
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();
|
let mut document = value.clone();
|
||||||
insert_geo_distance(sorters, &mut document);
|
insert_geo_distance(sorters, &mut document);
|
||||||
assert_eq!(document.get("_geoDistance"), Some(&json!(0)));
|
assert_eq!(document.get("_geoDistance"), Some(&json!(0)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user