public void Test1TwoNegativeValues()
        {
            TermLongList list = new TermLongList();
            list.Add(null);
            list.Add("-1");
            list.Add("-2");
            list.Add("0");
            list.Add("1");

            list.Seal();
            Assert.True(Arrays.Equals(new long[] { 0, -2, -1, 0, 1 }, list.Elements));
        }
예제 #2
0
        public void Test3ThreeNegativeValuesWithoutDummy()
        {
            TermLongList list = new TermLongList();

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

            list.Seal();
            Assert.True(Arrays.Equals(new long[] { -3, -2, -1, 0, 1 }, list.Elements));
        }
예제 #3
0
        public void Test1TwoNegativeValues()
        {
            TermLongList list = new TermLongList();

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

            list.Seal();
            Assert.True(Arrays.Equals(new long[] { 0, -2, -1, 0, 1 }, list.Elements));
        }
        public void Test3ThreeNegativeValuesWithoutDummy()
        {
            TermLongList list = new TermLongList();

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

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