From cb9528583c841c5f19cf27de414e3660bcbeb91d Mon Sep 17 00:00:00 2001 From: Shivam Kapoor <4599890+iamsmkr@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:13:38 +0000 Subject: [PATCH] fix tests --- raphtory/src/search/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/raphtory/src/search/mod.rs b/raphtory/src/search/mod.rs index 635608559..066bada1c 100644 --- a/raphtory/src/search/mod.rs +++ b/raphtory/src/search/mod.rs @@ -1195,7 +1195,7 @@ mod search_tests { indexed_graph.reload().expect("failed to reload index"); let results = indexed_graph - .search_nodes("kind:hobbit", 10, 0) + .search_nodes("kind:Hobbit", 10, 0) .expect("search failed"); let mut actual = results.into_iter().map(|v| v.name()).collect::>(); let mut expected = vec!["Frodo", "Merry"]; @@ -1206,14 +1206,14 @@ mod search_tests { assert_eq!(actual, expected); let results = indexed_graph - .search_nodes("kind:wizard", 10, 0) + .search_nodes("kind:Wizard", 10, 0) .expect("search failed"); let actual = results.into_iter().map(|v| v.name()).collect::>(); let expected = vec!["Gandalf"]; assert_eq!(actual, expected); let results = indexed_graph - .search_nodes("kind:creature", 10, 0) + .search_nodes("kind:Creature", 10, 0) .expect("search failed"); let actual = results.into_iter().map(|v| v.name()).collect::>(); let expected = vec!["Gollum"]; @@ -1221,7 +1221,7 @@ mod search_tests { // search by name let results = indexed_graph - .search_nodes("name:gollum", 10, 0) + .search_nodes("name:Gollum", 10, 0) .expect("search failed"); let actual = results.into_iter().map(|v| v.name()).collect::>(); let expected = vec!["Gollum"]; @@ -1239,7 +1239,7 @@ mod search_tests { graph.reload().expect("reload failed"); let nodes = graph - .search_nodes(r#"name:gandalf"#, 10, 0) + .search_nodes(r#"name:Gandalf"#, 10, 0) .expect("search failed"); let actual = nodes.into_iter().map(|v| v.name()).collect::>(); @@ -1273,7 +1273,7 @@ mod search_tests { graph.reload().expect("reload failed"); // Find the Wizard let nodes = graph - .search_nodes(r#"description:wizard"#, 10, 0) + .search_nodes(r#"description:"A wizard""#, 10, 0) .expect("search failed"); let actual = nodes.into_iter().map(|v| v.name()).collect::>(); let expected = vec!["Gandalf"];