Skip to content

Commit ff978ba

Browse files
Touch up comments in test
Co-Authored-By: Jacob Sznajdman <breakanalysis@gmail.com>
1 parent 837b55e commit ff978ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alpha/alpha-embeddings/src/test/java/org/neo4j/gds/embeddings/node2vec/PositiveSampleProducerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ void doesNotCauseStackOverflow() {
7171
10,
7272
TestProgressLogger.NULL_LOGGER
7373
);
74-
// does not overflow the stack = passes test
7574

7675
var counter = 0L;
7776
while (sampleProducer.hasNext()) {
7877
counter++;
7978
sampleProducer.next(new long[2]);
8079
}
8180

81+
// does not overflow the stack = passes test
8282
assertEquals(0, counter, "no samples possible here because walks are too short");
8383
}
8484

@@ -93,7 +93,7 @@ void doesNotCauseStackOverflowDueToBadLuck() {
9393
.toArray(new long[][]{})
9494
);
9595

96-
// our sample producer is supposed to work within the first 3 walks
96+
// our sample producer is supposed to work within the first nbrOfWalks - 1 walks
9797
// it prefetches in the constructor
9898
HugeDoubleArray probabilities = HugeDoubleArray.of(LongStream.range(0, nbrOfWalks).mapToDouble((l) -> 0).toArray());
9999
var sampleProducer = new PositiveSampleProducer(

0 commit comments

Comments
 (0)