Ejemplo n.º 1
0
        public void OutputsPostOrderStoredNumber()
        {
            var tree = new KnaryTree(2);

            tree.StoreNumber(7);
            Assert.AreEqual("111", tree.OutputPostOrder());
        }
Ejemplo n.º 2
0
        public void OutputsPostOrderStoredLargeNumber2()
        {
            var tree = new KnaryTree(8);

            tree.StoreNumber(1000000);
            Assert.AreEqual("0011463", tree.OutputPostOrder());
        }
Ejemplo n.º 3
0
        public void OutputsPostOrderStoredNumbers2()
        {
            var tree = new KnaryTree(4);

            tree.StoreNumber(7);
            tree.StoreNumber(43);
            tree.StoreNumber(2);
            Assert.AreEqual("31322", tree.OutputPostOrder());
        }