mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Fix the nested document id fetching function
This commit is contained in:
parent
2eec290424
commit
dc61105554
2 changed files with 6 additions and 4 deletions
|
@ -1198,7 +1198,7 @@ mod tests {
|
|||
let error = builder.execute().unwrap_err();
|
||||
assert_eq!(
|
||||
&error.to_string(),
|
||||
r#"Could not parse latitude in the document with the id: `0`. Was expecting a number but instead got `"lol"`."#
|
||||
r#"Could not parse latitude in the document with the id: `0`. Was expecting a finite number but instead got `"lol"`."#
|
||||
);
|
||||
|
||||
let documents = documents!([
|
||||
|
@ -1212,7 +1212,7 @@ mod tests {
|
|||
let error = builder.execute().unwrap_err();
|
||||
assert_eq!(
|
||||
&error.to_string(),
|
||||
r#"Could not parse latitude in the document with the id: `0`. Was expecting a number but instead got `[12,13]`."#
|
||||
r#"Could not parse latitude in the document with the id: `0`. Was expecting a finite number but instead got `[12,13]`."#
|
||||
);
|
||||
|
||||
let documents = documents!([
|
||||
|
@ -1226,7 +1226,7 @@ mod tests {
|
|||
let error = builder.execute().unwrap_err();
|
||||
assert_eq!(
|
||||
&error.to_string(),
|
||||
r#"Could not parse longitude in the document with the id: `0`. Was expecting a number but instead got `"hello"`."#
|
||||
r#"Could not parse longitude in the document with the id: `0`. Was expecting a finite number but instead got `"hello"`."#
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue