Skip to content

Commit 2f607c8

Browse files
committed
test: AoS Tuple Sketch cross language cases
1 parent 211bde9 commit 2f607c8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/test/java/org/apache/datasketches/tuple/strings/AosSketchCrossLanguageTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ public class AosSketchCrossLanguageTest {
3838

3939
@Test(groups = {GENERATE_JAVA_FILES})
4040
public void generateBinariesForCompatibilityTestingOneString() throws IOException {
41-
final int[] nArr = {0, 1, 10, 100, 1000, 10_000, 100_000, 1_000_000};
41+
int[] nArr = {0, 1, 10, 100, 1000, 10_000, 100_000, 1_000_000};
4242
for (int n : nArr) {
43-
final ArrayOfStringsTupleSketch sk = new ArrayOfStringsTupleSketch();
43+
ArrayOfStringsTupleSketch sk = new ArrayOfStringsTupleSketch();
4444
for (int i = 0; i < n; i++) {
4545
sk.update(new String[] {String.valueOf(i)}, new String[] {"value" + i});
4646
}
@@ -50,9 +50,9 @@ public void generateBinariesForCompatibilityTestingOneString() throws IOExceptio
5050

5151
@Test(groups = {GENERATE_JAVA_FILES})
5252
public void generateBinariesForCompatibilityTestingThreeStrings() throws IOException {
53-
final int[] nArr = {0, 1, 10, 100, 1000, 10_000, 100_000, 1_000_000};
53+
int[] nArr = {0, 1, 10, 100, 1000, 10_000, 100_000, 1_000_000};
5454
for (int n : nArr) {
55-
final ArrayOfStringsTupleSketch sk = new ArrayOfStringsTupleSketch();
55+
ArrayOfStringsTupleSketch sk = new ArrayOfStringsTupleSketch();
5656
for (int i = 0; i < n; i++) {
5757
sk.update(new String[] {String.valueOf(i)}, new String[] {"a" + i, "b" + i, "c" + i});
5858
}
@@ -62,7 +62,7 @@ public void generateBinariesForCompatibilityTestingThreeStrings() throws IOExcep
6262

6363
@Test(groups = {GENERATE_JAVA_FILES})
6464
public void generateBinariesForCompatibilityTestingNonEmptyNoEntries() throws IOException {
65-
final ArrayOfStringsTupleSketch sk = new ArrayOfStringsTupleSketch(12,
65+
ArrayOfStringsTupleSketch sk = new ArrayOfStringsTupleSketch(12,
6666
ResizeFactor.X8, 0.01f);
6767
sk.update(new String[] {"key1"}, new String[] {"value1"});
6868
assertFalse(sk.isEmpty());
@@ -72,9 +72,9 @@ public void generateBinariesForCompatibilityTestingNonEmptyNoEntries() throws IO
7272

7373
@Test(groups = {GENERATE_JAVA_FILES})
7474
public void generateBinariesForCompatibilityTestingMultiKeyStrings() throws IOException {
75-
final int[] nArr = {0, 1, 10, 100, 1000, 10_000};
75+
int[] nArr = {0, 1, 10, 100, 1000, 10_000};
7676
for (int n : nArr) {
77-
final ArrayOfStringsTupleSketch sk = new ArrayOfStringsTupleSketch();
77+
ArrayOfStringsTupleSketch sk = new ArrayOfStringsTupleSketch();
7878
for (int i = 0; i < n; i++) {
7979
sk.update(new String[] {"key" + i, "subkey" + (i % 10)}, new String[] {"value" + i});
8080
}
@@ -84,7 +84,7 @@ public void generateBinariesForCompatibilityTestingMultiKeyStrings() throws IOEx
8484

8585
@Test(groups = {GENERATE_JAVA_FILES})
8686
public void generateBinariesForCompatibilityTestingUnicodeStrings() throws IOException {
87-
final ArrayOfStringsTupleSketch sk = new ArrayOfStringsTupleSketch();
87+
ArrayOfStringsTupleSketch sk = new ArrayOfStringsTupleSketch();
8888

8989
sk.update(new String[]{"키", "열쇠"}, new String[]{"밸류", "값"});
9090
sk.update(new String[]{"🔑", "🗝️"}, new String[]{"📦", "🎁"});

0 commit comments

Comments
 (0)