leerho commented on code in PR #705:
URL: https://github.com/apache/datasketches-java/pull/705#discussion_r2641455779


##########
src/test/java/org/apache/datasketches/tuple/strings/ArrayOfStringsSummary_Issue699.java:
##########
@@ -0,0 +1,69 @@
+package org.apache.datasketches.tuple.strings;
+
+import static org.apache.datasketches.common.Util.LS;
+
+import org.apache.datasketches.theta.UpdatableThetaSketch;
+import org.apache.datasketches.tuple.TupleSketchIterator;
+import org.apache.datasketches.tuple.TupleUnion;
+import org.testng.annotations.Test;
+
+public class ArrayOfStringsSummary_Issue699 {
+  UpdatableThetaSketch thetaSk = UpdatableThetaSketch.builder().build();
+  ArrayOfStringsTupleSketch tupleSk = new ArrayOfStringsTupleSketch();
+  TupleUnion<ArrayOfStringsSummary> union = new TupleUnion<>(new 
ArrayOfStringsSummarySetOperations());
+
+  @Test
+  void go() {
+    thetaSk.update("a");
+    thetaSk.update("b");
+    thetaSk.update("c");
+    
+    tupleSk.update("a", new String[] {"x", "y"});
+    tupleSk.update("b", new String[] {"z"});
+    tupleSk.update("e", new String[] {"x", "z"});
+    
+    println("Print Tuple Summary before union");
+    printSummaries(tupleSk.iterator());
+    
+    union.union(tupleSk);
+    union.union(thetaSk, new ArrayOfStringsSummary()); //enable this or the 
next
+    //union.union(thetaSk, new ArrayOfStringsSummary(new String[] {"u", 
"v"})); //optional association
+    
+    println("Print Tuple Summary after union");
+    printSummaries(union.getResult().iterator());
+  }
+  
+  @Test
+  void checkCopy() {
+    ArrayOfStringsSummary aoss = new ArrayOfStringsSummary();
+    ArrayOfStringsSummary aoss2 = aoss.copy();

Review Comment:
   Fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to