From d07679e201ce331bd92daa8e803fd36a15e2e760 Mon Sep 17 00:00:00 2001 From: Allan Clements Date: Fri, 8 Nov 2024 16:22:55 -0600 Subject: [PATCH] Modifed test to reflect has clause not needing predicate for equality testing --- .../src/process/traversal/graph_traversal_source.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/gremlin-client/src/process/traversal/graph_traversal_source.rs b/gremlin-client/src/process/traversal/graph_traversal_source.rs index ac3a3199..452b9f8f 100644 --- a/gremlin-client/src/process/traversal/graph_traversal_source.rs +++ b/gremlin-client/src/process/traversal/graph_traversal_source.rs @@ -221,14 +221,11 @@ mod tests { code.add_step(String::from("V"), vec![1.into()]); code.add_step( String::from("has"), - vec![ - String::from("name").into(), - P::new("eq", String::from("marko").into()).into(), - ], + vec![String::from("name").into(), String::from("marko").into()], ); code.add_step( String::from("has"), - vec![String::from("age").into(), P::new("eq", 23.into()).into()], + vec![String::from("age").into(), 23.into()], ); assert_eq!( @@ -246,7 +243,7 @@ mod tests { vec![ String::from("person").into(), String::from("name").into(), - P::new("eq", String::from("marko").into()).into(), + String::from("marko").into(), ], ); @@ -359,7 +356,7 @@ mod tests { code.add_step(String::from("V"), vec![1.into()]); code.add_step(String::from("values"), vec!["age".into()]); - code.add_step(String::from("is"), vec![P::eq(23).into()]); + code.add_step(String::from("is"), vec![23i32.into()]); assert_eq!(&code, g.v(1).values("age").is(23).bytecode()); }