Skip to content
Permalink
Browse files
more tests
  • Loading branch information
AlexanderSaydakov committed Jul 11, 2017
1 parent ef9f124 commit 40976aa12c66a17627d4aaf70b90468442894b7c
Showing 1 changed file with 20 additions and 0 deletions.
@@ -131,6 +131,26 @@ public void algebraicInitial() throws Exception {
Assert.assertEquals(result, input);
}

@Test
public void algebraicInitialWithLgK() throws Exception {
EvalFunc<Tuple> func =
(EvalFunc<Tuple>) Class.forName(new DataToSketch().getInitial())
.getConstructor(String.class).newInstance("10");
Tuple input = tupleFactory.newTuple();
Tuple result = func.exec(input);
Assert.assertEquals(result, input);
}

@Test
public void algebraicInitialWithLgKAndTgtHllType() throws Exception {
EvalFunc<Tuple> func =
(EvalFunc<Tuple>) Class.forName(new DataToSketch().getInitial())
.getConstructor(String.class, String.class).newInstance("10", "HLL_6");
Tuple input = tupleFactory.newTuple();
Tuple result = func.exec(input);
Assert.assertEquals(result, input);
}

@Test
public void algebraicIntermediateNullInputTuple() throws Exception {
EvalFunc<Tuple> func =

0 comments on commit 40976aa

Please sign in to comment.