Skip to content

Commit

Permalink
Verify consistency between relTypes in projections
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentinD committed Oct 10, 2023
1 parent eaa3018 commit 3ab8de6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ void testNodeLabels(String labels) {
"RETURN gds.graph.project('g', s, null, { sourceNodeLabels: " + labels + ", targetNodeLabels: NULL })");

var graphStore = GraphStoreCatalog.get("", db.databaseName(), "g").graphStore();

assertThat(graphStore.relationshipTypes()).containsExactlyInAnyOrderElementsOf(graphStore.schema().relationshipSchema().availableTypes());

assertThat(graphStore.nodeLabels()).extracting(NodeLabel::name).containsExactly("A", "B");
}

Expand Down

0 comments on commit 3ab8de6

Please sign in to comment.