예제 #1
0
    def test_member_of_nth_fib_lists(self):

        self.assertFalse(False, member_of_nth_fib_lists([1, 2], [3, 4], [5, 6]))
        # False
        self.assertTrue(True, member_of_nth_fib_lists([1, 2],
                                                      [3, 4], [1, 2, 3, 4, 3, 4, 1, 2, 3, 4]))
        # True
        self.assertTrue(
            True, member_of_nth_fib_lists([7, 11], [2], [7, 11, 2, 2, 7, 11, 2]))
        # True
        self.assertFalse(
            False, member_of_nth_fib_lists([7, 11], [2], [11, 7, 2, 2, 7]))
예제 #2
0
 def test_member_of_nth_fib_lists(self):
     self.assertEqual(False, member_of_nth_fib_lists([1, 2], [3, 4],
                                                     [5, 6]))
     self.assertEqual(
         True,
         member_of_nth_fib_lists([1, 2], [3, 4],
                                 [1, 2, 3, 4, 3, 4, 1, 2, 3, 4]))
     self.assertEqual(
         True, member_of_nth_fib_lists([7, 11], [2],
                                       [7, 11, 2, 2, 7, 11, 2]))
     self.assertEqual(
         False, member_of_nth_fib_lists([7, 11], [2], [11, 7, 2, 2, 7]))
예제 #3
0
 def test_4(self):
     self.assertEqual(False, solution.member_of_nth_fib_lists([7,11], [2], [11,7,2,2,7]))
예제 #4
0
	def test_is_member(self):
		self.assertTrue(member_of_nth_fib_lists([1, 2], [3, 4], [1,2,3,4,3,4,1,2,3,4]))
		self.assertTrue(member_of_nth_fib_lists([7,11], [2], [7,11,2,2,7,11,2]))
		self.assertTrue(member_of_nth_fib_lists([],[],[]))
예제 #5
0
파일: test.py 프로젝트: gshopov/the-stash
 def test_with_farther_elements(self):
     self.assertTrue(solution.member_of_nth_fib_lists([], [1],
                                                      [1, 1, 1, 1, 1]))
     self.assertTrue(solution.member_of_nth_fib_lists(
         [1, 2], [3, 4], [1, 2, 3, 4, 3, 4, 1, 2, 3, 4]))
     self.assertFalse(solution.member_of_nth_fib_lists([1], [2], [3]))
예제 #6
0
 def test_foure(self):
     self.assertEquals(
         member_of_nth_fib_lists([7, 11], [2], [11, 7, 2, 2, 7]), False)
예제 #7
0
 def test_two(self):
     self.assertEquals(
         member_of_nth_fib_lists([1, 2], [3, 4],
                                 [1, 2, 3, 4, 3, 4, 1, 2, 3, 4]), True)
예제 #8
0
 def test_true(self):
     self.assertTrue(solution.member_of_nth_fib_lists([1, 2], [3, 4], [1,2,3,4,3,4,1,2,3,4]))
예제 #9
0
파일: test.py 프로젝트: gshopov/the-stash
 def test_with_the_second_element(self):
     self.assertTrue(solution.member_of_nth_fib_lists([], [1, 2], [1, 2]))
 def test_correctness(self):
     self.assertFalse(member_of_nth_fib_lists([1, 2], [3, 4], [5, 6]))
     self.assertTrue(member_of_nth_fib_lists(
         [1, 2], [3, 4], [1, 2, 3, 4, 3, 4, 1, 2, 3, 4]))
예제 #11
0
 def test_four(self):
     self.assertFalse(
         member_of_nth_fib_lists([7, 11], [2], [11, 7, 2, 2, 7]))
예제 #12
0
 def test_member_of_nth_fib_lists1(self):
     self.assertEqual(False, solution.member_of_nth_fib_lists([1, 2], [3, 4], [5, 6]))
예제 #13
0
 def test_member_of_nth_fib_lists2(self):
     self.assertEqual(True, solution.member_of_nth_fib_lists([1, 2], [3, 4], [1,2,3,4,3,4,1,2,3,4]))
예제 #14
0
 def test_member_of_nth_fib_lists5(self):
     self.assertEqual(True, solution.member_of_nth_fib_lists([3, 4 ,5], [2], [3, 4, 5 ,2]))
예제 #15
0
 def test_member_of_nth_fib_lists4(self):
     self.assertEqual(False, solution.member_of_nth_fib_lists([7,11], [2], [11,7,2,2,7]))
예제 #16
0
 def test_member_of_nth_fib_lists3(self):
     self.assertEqual(True, solution.member_of_nth_fib_lists([7,11], [2], [7,11,2,2,7,11,2]))
예제 #17
0
 def test_1(self):
     self.assertEqual(False, solution.member_of_nth_fib_lists([1, 2], [3, 4], [5, 6]))
예제 #18
0
파일: test.py 프로젝트: h3lgi/HackBulgaria
	def test_member_of_nth_fib_lists_2(self):
		self.assertEqual(True, member_of_nth_fib_lists([7,11], [2], [7,11,2,2,7,11,2]))
예제 #19
0
 def test_2(self):
     self.assertEqual(True, solution.member_of_nth_fib_lists([1, 2], [3, 4], [1,2,3,4,3,4,1,2,3,4]))
예제 #20
0
파일: test.py 프로젝트: h3lgi/HackBulgaria
	def test_member_of_nth_fib_lists_1(self):
		self.assertEqual(True, member_of_nth_fib_lists([1, 2], [3, 4], [1,2,3,4,3,4,1,2,3,4]))
예제 #21
0
 def test_false(self):
     self.assertFalse(solution.member_of_nth_fib_lists([1, 2], [3, 4], [5, 6]))
예제 #22
0
파일: test.py 프로젝트: gshopov/the-stash
 def test_with_the_first_element(self):
     self.assertTrue(solution.member_of_nth_fib_lists([12], [42], [12]))
예제 #23
0
파일: test.py 프로젝트: h3lgi/HackBulgaria
	def test_member_of_nth_fib_lists_0(self):
		self.assertEqual(False, member_of_nth_fib_lists([1, 2], [3, 4], [5, 6]))
예제 #24
0
 def test_for_member3(self):
     self.assertTrue(solution.member_of_nth_fib_lists([7, 11],\
         [2], [7, 11, 2, 2, 7, 11, 2]))
예제 #25
0
 def test_three(self):
     self.assertEquals(
         member_of_nth_fib_lists([7, 11], [2], [7, 11, 2, 2, 7, 11, 2]),
         True)
예제 #26
0
 def test_for_member4(self):
     self.assertTrue(not solution.member_of_nth_fib_lists([7, 11], [2], [11, 7, 2, 2, 7]))
예제 #27
0
 def test_one(self):
     self.assertEquals(member_of_nth_fib_lists([1, 2], [3, 4], [5, 6]),
                       False)
예제 #28
0
 def test_for_member1(self):
     self.assertTrue(not solution.member_of_nth_fib_lists([1, 2], [3, 4], [5, 6]))
예제 #29
0
 def test_member_of_nth_fib_lists(self):
     self.assertEqual(False, member_of_nth_fib_lists([1, 2], [3, 4], [5, 6]))
     self.assertEqual(True, member_of_nth_fib_lists([1, 2], [3, 4], [1, 2, 3, 4, 3, 4, 1, 2, 3, 4]))
     self.assertEqual(True, member_of_nth_fib_lists([7, 11], [2], [7, 11, 2, 2, 7, 11, 2]))
     self.assertEqual(False, member_of_nth_fib_lists([7, 11], [2], [11, 7, 2, 2, 7]))
예제 #30
0
 def test_member_of_nth_fib_list(self):
     self.assertFalse(member_of_nth_fib_lists([1, 2], [3, 4], [5, 6]))
     self.assertFalse(
         member_of_nth_fib_lists([7, 11], [2], [11, 7, 2, 2, 7]))
     self.assertTrue(
         member_of_nth_fib_lists([7, 11], [2], [7, 11, 2, 2, 7, 11, 2]))
예제 #31
0
	def test_is_not_member(self):
		self.assertFalse(member_of_nth_fib_lists([1, 2], [3, 4], [5, 6]))
		self.assertFalse(member_of_nth_fib_lists([7,11], [2], [11,7,2,2,7]))
예제 #32
0
 def test_3(self):
     self.assertEqual(True, solution.member_of_nth_fib_lists([7,11], [2], [7,11,2,2,7,11,2]))