Skip to content

Commit 2175c62

Browse files
Improve string formating in a test
Co-Authored-By: Paul Horn <[email protected]>
1 parent 05717ac commit 2175c62

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

alpha/alpha-proc/src/test/java/org/neo4j/gds/ml/linkmodels/pipeline/predict/LinkPredictionPipelineMutateProcTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ void shouldPredictWithTopN(int topN, int concurrency, String nodeLabel) {
9292
assertGraphEquals(
9393
fromGdl(
9494
formatWithLocale(
95-
" (n0:%s {a: 1.0, b: 0.8, c: 1.0})" +
96-
", (n1:%s {a: 2.0, b: 1.0, c: 1.0})" +
97-
", (n2:%s {a: 3.0, b: 1.5, c: 1.0})" +
98-
", (n3:%s {a: 0.0, b: 2.8, c: 1.0})" +
99-
", (n4:%s {a: 1.0, b: 0.9, c: 1.0})" + relationshipGdl,
100-
nodeLabel, nodeLabel, nodeLabel, nodeLabel, nodeLabel)
95+
" (n0:%1$s {a: 1.0, b: 0.8, c: 1.0})" +
96+
", (n1:%1$s {a: 2.0, b: 1.0, c: 1.0})" +
97+
", (n2:%1$s {a: 3.0, b: 1.5, c: 1.0})" +
98+
", (n3:%1$s {a: 0.0, b: 2.8, c: 1.0})" +
99+
", (n4:%1$s {a: 1.0, b: 0.9, c: 1.0})" + relationshipGdl,
100+
nodeLabel)
101101
), actualGraph);
102102
}
103103

0 commit comments

Comments
 (0)