예제 #1
0
        public void TestKSortAdd_10()
        {
            Ksort ks = new Ksort();

            ks.Index("a00");
            ks.Index("c54");

            ks.Add("a00");
            ks.Add("c54");
            ks.Add("h99");
            Assert.AreEqual("a00", ks.items[ks.Index("a00")]);
            Assert.AreEqual("c54", ks.items[ks.Index("c54")]);
            Assert.AreEqual("h99", ks.items[ks.Index("h99")]);
        }
예제 #2
0
        public void TestKSortIndex_12()
        {
            Ksort ks = new Ksort();

            Assert.AreEqual(-1, ks.Index("i01"));
        }
예제 #3
0
        public void TestKSortIndex_11()
        {
            Ksort ks = new Ksort();

            Assert.AreEqual(799, ks.Index("h99"));
        }
예제 #4
0
        public void TestKSortIndex_10()
        {
            Ksort ks = new Ksort();

            Assert.AreEqual(701, ks.Index("h01"));
        }
예제 #5
0
        public void TestKSortIndex_9()
        {
            Ksort ks = new Ksort();

            Assert.AreEqual(489, ks.Index("e89"));
        }
예제 #6
0
        public void TestKSortIndex_8()
        {
            Ksort ks = new Ksort();

            Assert.AreEqual(445, ks.Index("e45"));
        }
예제 #7
0
        public void TestKSortIndex_7()
        {
            Ksort ks = new Ksort();

            Assert.AreEqual(401, ks.Index("e01"));
        }
예제 #8
0
        public void TestKSortIndex_6()
        {
            Ksort ks = new Ksort();

            Assert.AreEqual(110, ks.Index("b10"));
        }
예제 #9
0
        public void TestKSortIndex_5()
        {
            Ksort ks = new Ksort();

            Assert.AreEqual(100, ks.Index("b00"));
        }
예제 #10
0
        public void TestKSortIndex_4()
        {
            Ksort ks = new Ksort();

            Assert.AreEqual(11, ks.Index("a11"));
        }
예제 #11
0
        public void TestKSortIndex_20()
        {
            Ksort ks = new Ksort();

            Assert.AreEqual(-1, ks.Index("00a"));
        }
예제 #12
0
        public void TestKSortIndex_1()
        {
            Ksort ks = new Ksort();

            Assert.AreEqual(0, ks.Index("a00"));
        }