We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6480b1f commit d6d5b55Copy full SHA for d6d5b55
core/src/test/java/org/neo4j/gds/core/huge/NodeFilteredAdjacencyCursorTest.java
@@ -43,6 +43,21 @@ void setup() {
43
this.adjacencyCursor = new NodeFilteredAdjacencyCursor(innerCursor, filterIdMap);
44
}
45
46
+ @Test
47
+ void shouldNotStartWithNegativeValues(){
48
+ adjacencyCursor.init(0,0);
49
+ assertThat(adjacencyCursor.peekVLong()).isNotEqualTo(AdjacencyCursor.NOT_FOUND);
50
+ assertThat(adjacencyCursor.nextVLong()).isNotEqualTo(AdjacencyCursor.NOT_FOUND);
51
+
52
+ }
53
54
55
+ void nextShouldApplyFiltering(){
56
57
+ adjacencyCursor.nextVLong();
58
+ assertThat(adjacencyCursor.peekVLong()).isEqualTo(2);
59
60
61
@Test
62
void shouldIterateWithFilter() {
63
List<Long> actual = new ArrayList<>();
0 commit comments