public DefaultShortFacetIterator(TermShortList valList, BigSegmentedArray countarray, int countlength, bool zeroBased)
 {
     _valList = valList;
     _countlength = countlength;
     _count = countarray;
     _countLengthMinusOne = _countlength - 1;
     _index = -1;
     if (!zeroBased)
         _index++;
     _facet = TermShortList.VALUE_MISSING;
     count = 0;
 }
        public void Test2bThreeNegativeValuesShort()
        {
            TermShortList list = new TermShortList();
            list.Add(null);
            list.Add("-1");
            list.Add("-2");
            list.Add("-3");
            list.Add("0");
            list.Add("1");

            list.Seal();
            Assert.True(Arrays.Equals(new short[] { 0, -3, -2, -1, 0, 1 }, list.Elements));
        }
        public void Test2bThreeNegativeValuesShort()
        {
            TermShortList list = new TermShortList();

            list.Add(null);
            list.Add("-1");
            list.Add("-2");
            list.Add("-3");
            list.Add("0");
            list.Add("1");

            list.Seal();
            Assert.True(Arrays.Equals(new short[] { 0, -3, -2, -1, 0, 1 }, list.Elements));
        }