Skip to content

Commit

Permalink
Modifed test to reflect has clause not needing predicate for equality…
Browse files Browse the repository at this point in the history
… testing
  • Loading branch information
criminosis committed Nov 8, 2024
1 parent 6626be3 commit d07679e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions gremlin-client/src/process/traversal/graph_traversal_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand All @@ -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(),
],
);

Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit d07679e

Please sign in to comment.