Skip to content

Commit a24c60d

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 72fbc9c commit a24c60d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

libs/exponential-histogram/src/test/java/org/elasticsearch/exponentialhistogram/ExponentialHistogramXContentTests.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ public void testOnlyPositiveBuckets() {
8989
histo.setMax(2.5);
9090
histo.tryAddBucket(-1, 3, true);
9191
histo.tryAddBucket(2, 5, true);
92-
assertThat(toJson(histo), equalTo("{\"scale\":4,\"sum\":1.1,\"min\":0.5,\"max\":2.5,\"positive\":{\"indices\":[-1,2],\"counts\":[3,5]}}"));
92+
assertThat(
93+
toJson(histo),
94+
equalTo("{\"scale\":4,\"sum\":1.1,\"min\":0.5,\"max\":2.5,\"positive\":{\"indices\":[-1,2],\"counts\":[3,5]}}")
95+
);
9396
}
9497

9598
public void testOnlyNegativeBuckets() {
@@ -100,7 +103,10 @@ public void testOnlyNegativeBuckets() {
100103
histo.setMax(-0.25);
101104
histo.tryAddBucket(-1, 4, false);
102105
histo.tryAddBucket(2, 6, false);
103-
assertThat(toJson(histo), equalTo("{\"scale\":5,\"sum\":1.1,\"min\":-0.5,\"max\":-0.25,\"negative\":{\"indices\":[-1,2],\"counts\":[4,6]}}"));
106+
assertThat(
107+
toJson(histo),
108+
equalTo("{\"scale\":5,\"sum\":1.1,\"min\":-0.5,\"max\":-0.25,\"negative\":{\"indices\":[-1,2],\"counts\":[4,6]}}")
109+
);
104110
}
105111

106112
private static String toJson(ExponentialHistogram histo) {

0 commit comments

Comments
 (0)