kopia lustrzana
https://github.com/meilisearch/MeiliSearch
zsynchronizowano 2025-07-03 11:57:07 +02:00
fmt
Ten commit jest zawarty w:
rodzic
fce132a21b
commit
36b897858a
1 zmienionych plików z 3 dodań i 2 usunięć
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Dodaj tabelę
Add a link
Odniesienie w nowym zgłoszeniu