diff --git a/meilisearch/tests/search/mod.rs b/meilisearch/tests/search/mod.rs index 1e5c23a71..045cfde2c 100644 --- a/meilisearch/tests/search/mod.rs +++ b/meilisearch/tests/search/mod.rs @@ -30,7 +30,7 @@ pub(self) static DOCUMENTS: Lazy = Lazy::new(|| { "id": "166428", }, { - "title": "Glass", + "title": "Gläss", "id": "450465", } ]) @@ -52,7 +52,7 @@ pub(self) static NESTED_DOCUMENTS: Lazy = Lazy::new(|| { "age": 4, }, ], - "cattos": "pesti", + "cattos": "pésti", }, { "id": 654, @@ -142,7 +142,7 @@ async fn simple_search() { index.wait_task(1).await; index - .search(json!({"q": "pesti"}), |response, code| { + .search(json!({"q": "pésti"}), |response, code| { assert_eq!(code, 200, "{}", response); assert_eq!(response["hits"].as_array().unwrap().len(), 2); }) @@ -250,7 +250,7 @@ async fn search_multiple_params() { index .search( json!({ - "q": "pesti", + "q": "pésti", "attributesToCrop": ["catto:2"], "attributesToHighlight": ["catto"], "limit": 2, @@ -281,7 +281,7 @@ async fn search_with_filter_string_notation() { index .search( json!({ - "filter": "title = Glass" + "filter": "title = Gläss" }), |response, code| { assert_eq!(code, 200, "{}", response); @@ -305,7 +305,7 @@ async fn search_with_filter_string_notation() { index .search( json!({ - "filter": "cattos = pesti" + "filter": "cattos = pésti" }), |response, code| { assert_eq!(code, 200, "{}", response); @@ -343,7 +343,7 @@ async fn search_with_filter_array_notation() { let (response, code) = index .search_post(json!({ - "filter": ["title = Glass"] + "filter": ["title = Gläss"] })) .await; assert_eq!(code, 200, "{}", response); @@ -351,7 +351,7 @@ async fn search_with_filter_array_notation() { let (response, code) = index .search_post(json!({ - "filter": [["title = Glass", "title = \"Shazam!\"", "title = \"Escape Room\""]] + "filter": [["title = Gläss", "title = \"Shazam!\"", "title = \"Escape Room\""]] })) .await; assert_eq!(code, 200, "{}", response);