TeStereo report
 
@Test public void hyperLogLogTest() throws Exception {
  PigTest test=createPigTestFromString(hyperLogLogTest);
  int count=1000000;
  String[] input=new String[count];
  for (int i=0; i < count; i++) {
    input[i]=Integer.toString(i * 10);
  }
  writeLinesToFile("input",input);
  test.runScript();
  List output=getLinesForAlias(test,"data_out",true);
  assertEquals(output.size(),1);
  double error=Math.abs(count - ((Long)output.get(0).get(0))) / (double)count;
  System.out.println("error: " + error * 100.0 + "%");
  assertTrue(error < 0.01);
}