Skip to content

Commit

Permalink
Update src/settings.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tamo <irevoire@protonmail.ch>
  • Loading branch information
NoodleSamaChan and irevoire authored Jul 2, 2024
1 parent 16ffb97 commit 1c07bd3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2358,16 +2358,15 @@ mod tests {

#[meilisearch_test]
async fn test_set_non_separator_tokens(client: Client, index: Index) {
let expected: Vec<String> = vec![ "#".to_string(), "@".to_string()];
let expected: Vec<String> = vec![ "@".to_string(), "#".to_string()];

let task_info = index
.set_non_separator_tokens(&vec!["@".to_string(), "#".to_string()])
.set_non_separator_tokens(&expected)
.await
.unwrap();
client.wait_for_task(task_info, None, None).await.unwrap();

let mut res = index.get_non_separator_tokens().await.unwrap();
res.reverse();

assert_eq!(expected, res);
}
Expand Down

0 comments on commit 1c07bd3

Please sign in to comment.