()
| 1162 | } |
| 1163 | |
| 1164 | @Test |
| 1165 | public void testCOUNTFinal() throws Exception { |
| 1166 | long input[] = { 23, 38, 39 }; |
| 1167 | Tuple tup = Util.loadNestTuple(TupleFactory.getInstance().newTuple(1), input); |
| 1168 | |
| 1169 | EvalFunc<Long> count = new COUNT.Final(); |
| 1170 | Long output = count.exec(tup); |
| 1171 | |
| 1172 | assertEquals("Expected count to be 100", 100, output.longValue()); |
| 1173 | } |
| 1174 | |
| 1175 | @Test |
| 1176 | public void testCOUNTBagNullCheck() throws Exception{ |
nothing calls this directly
no test coverage detected