Example #1
0
 def test_ceil(self):
   fib = GoldFib()
   self.assertEqual(fib.fibCeil(21),[0,1,1,2,3,5,8,13,21,34])
Example #2
0
 def test_seq5(self):
   fib = GoldFib()
   self.assertEqual(fib.fibList(5),[0,1,1,2,3])
Example #3
0
 def test_floor(self):
   fib = GoldFib()
   self.assertEqual(fib.fibFloor(21),[0,1,1,2,3,5,8,13])
Example #4
0
 def test_seq1(self):
   fib = GoldFib()
   self.assertEqual(fib.fibList(1),[0])
Example #5
0
 def test_seq0(self):
   fib = GoldFib()
   self.assertEqual(fib.fibList(0),[])
Example #6
0
 def test_seqNeg1(self):
   fib = GoldFib()
   self.assertEqual(fib.fibList(-3),None)
Example #7
0
 def test_fibAt5(self):
   fib = GoldFib()
   self.assertEqual(fib.fibAtN(5),5)
Example #8
0
 def test_fibAt0(self):
   fib = GoldFib()
   self.assertEqual(fib.fibAtN(0),0)