@@ -0,0 +1,1773 @@
+package water.fvec;%0A%0Aimport org.testng.AssertJUnit;%0Aimport org.testng.annotations.Test;%0Aimport water.TestUtil;%0A%0Aimport java.util.Arrays;%0A%0Apublic class CXIChunkTest extends TestUtil %7B%0A  @Test void test_inflate_impl() %7B%0A    for (int l=0; l%3C2; ++l) %7B%0A      NewChunk nc = new NewChunk(null, 0);%0A%0A      int%5B%5D vals = new int%5B%5D%7B0, 0, 0, Integer.MAX_VALUE, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,%0A              0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,%0A              0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Integer.MIN_VALUE+1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,%0A              0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0%7D;%0A%0A      if (l==1) nc.addNA();%0A      for (int v : vals) nc.addNum(v, 0);%0A      nc.addNA();%0A%0A      Chunk cc = nc.compress();%0A      AssertJUnit.assertEquals(vals.length+1+l, cc.len());%0A      AssertJUnit.assertTrue(cc instanceof CXIChunk);%0A      if (l==1) AssertJUnit.assertTrue(cc.isNA0(0));%0A      for (int i = 0; i %3C vals.length; ++i) AssertJUnit.assertEquals(vals%5Bi%5D, cc.at80(i+l));%0A      AssertJUnit.assertTrue(cc.isNA0(vals.length+l));%0A%0A      Chunk cc2 = cc.inflate_impl(new NewChunk(null, 0)).compress();%0A      AssertJUnit.assertEquals(vals.length+1+l, cc.len());%0A      AssertJUnit.assertTrue(cc2 instanceof CXIChunk);%0A      if (l==1) AssertJUnit.assertTrue(cc2.isNA0(0));%0A      for (int i = 0; i %3C vals.length; ++i) AssertJUnit.assertEquals(vals%5Bi%5D, cc2.at80(i+l));%0A      AssertJUnit.assertTrue(cc2.isNA0(vals.length+l));%0A%0A      AssertJUnit.assertTrue(Arrays.equals(cc._mem, cc2._mem));%0A    %7D%0A  %7D%0A%7D%0A

Add tests for CXIChunk.