CoverageLongs { public int getHashLength() { if (count == 0) return 0; else return (int) (hashes[0] & 0x0f); } CoverageLongs(long[] hashes, int count, double ratio); long[] getHashes(); double getRatio(); int getHashLength(); @Override String toString(); int getCount();  }
@Test public void testCoverageLongsHashLength() { CoverageLongs coverage = new CoverageLongs(new long[] {}, 0, 1.0); assertEquals(0, coverage.getHashLength()); System.out.println(coverage); }
@Test public void testCoverageLongsOfAnAreaThatCantBeCoveredWithHashOfLengthOne() { CoverageLongs coverage = GeoHash.coverBoundingBoxLongs(-5, 100, -45, 170, 1); assertEquals(1, coverage.getHashLength()); }