Exemple #1
0
        public void Input_111_10_shouldReturn_1_1_1_3_5_9_17_31_57_105()
        {
            var result = Variabonacci.Tribonacci(new double[] { 1, 1, 1 }, 10);

            CollectionAssert.AreEqual(new double[] { 1, 1, 1, 3, 5, 9, 17, 31, 57, 105 }, result);
        }
Exemple #2
0
        public void Input_001_10_shouldReturn_0_0_1_1_2_4_7_13_24_44()
        {
            var result = Variabonacci.Tribonacci(new double[] { 0, 0, 1 }, 10);

            CollectionAssert.AreEqual(new double[] { 0, 0, 1, 1, 2, 4, 7, 13, 24, 44 }, result);
        }
Exemple #3
0
        public void Input_111_5_shouldReturn_1_1_1_3_5()
        {
            var result = Variabonacci.Tribonacci(new double[] { 1, 1, 1 }, 5);

            CollectionAssert.AreEqual(new double[] { 1, 1, 1, 3, 5 }, result);
        }