Example #1
0
    def test_findSumOfTests_Example(self):
        s = [10, 15, 3, 7]
        k = 17

        self.assertTrue(findSumOfK(s, k))
Example #2
0
    def test_findSumOfTests_EmptySet(self):
        s = []
        k = 12

        self.assertFalse(findSumOfK(s, k))
Example #3
0
    def test_findSumOfTests_NegativeKValue(self):
        s = [10, -15, 3, 7]
        k = -12

        self.assertTrue(findSumOfK(s, k))
Example #4
0
    def test_findSumOfTests_NegativeNumbersInSet(self):
        s = [10, 15, -3, 7]
        k = 12

        self.assertTrue(findSumOfK(s, k))
Example #5
0
    def test_findSumOfTests_ReturnsFalse(self):
        s = [10, 15, 3, 7]
        k = 20

        self.assertFalse(findSumOfK(s, k))