import tripletSum


def test_case1():
    assert tripletSum.tripletSum(15, [14, 1, 2, 3, 8, 15, 3]) == False


def test_case2():
    assert tripletSum.tripletSum(8, [1, 1, 2, 5, 3]) == True


def test_case3():
    assert tripletSum.tripletSum(6, [2, 3, 1]) == True


def test_case4():
    assert tripletSum.tripletSum(5, [2, 3, 1]) == False


def test_case5():
    assert tripletSum.tripletSum(468,
                                 [335, 501, 170, 725, 479, 359, 963, 465, 706, 146, 282, 828, 962, 492, 996, 943, 828,
                                  437, 392, 605, 903, 154, 293, 383, 422, 717, 719, 896, 448, 727, 772, 539, 870, 913,
                                  668, 300, 36, 895, 704, 812, 323, 334]) == False


def test_case6():
    assert tripletSum.tripletSum(165,
                                 [142, 712, 254, 869, 548, 645, 663, 758, 38, 860, 724, 742, 530, 779, 317, 36, 191,
                                  843, 289, 107, 41, 943, 265, 649, 447, 806, 891, 730, 371, 351, 7, 102, 394, 549, 630,
                                  624, 85, 955, 757, 841, 967, 377, 932, 309, 945, 440, 627, 324, 538, 539, 119, 83,
                                  930, 542, 834, 116, 640, 659, 705, 931, 978, 307, 674, 387, 22, 746, 925, 73, 271,
                                  830, 778, 574, 98, 513]) == True


def test_case7():
    assert tripletSum.tripletSum(1356,
                                 [54, 963, 585, 735, 655, 973, 458, 370, 533, 964, 608, 484, 912, 636, 68, 849, 676,
                                  939, 224, 143, 755, 512, 742, 176, 460, 826, 222, 871, 627, 935, 206, 784, 851, 399,
                                  280, 702, 194, 735, 638, 535, 557, 994, 177, 706, 963, 549, 882, 301, 414, 642, 856,
                                  856, 143, 463, 612, 878, 425, 679, 753, 444, 297, 674, 41, 314, 876, 73, 819, 611, 18,
                                  933, 113, 696, 170, 832, 41, 489, 686, 91, 498, 590, 991, 146, 354, 315, 652, 741, 45,
                                  259, 336, 760, 193, 606, 265, 182, 504, 830, 776]) == True


def test_case8():
    assert tripletSum.tripletSum(793, [998, 550, 557, 562, 628, 468, 542, 130, 241]) == False


def test_case9():
    assert tripletSum.tripletSum(787,
                                 [499, 971, 288, 848, 605, 504, 222, 664, 707, 364, 11, 172, 490, 241, 165, 543, 620,
                                  914, 592, 705, 819, 233, 751, 206, 976, 540, 304, 423, 99, 248, 585, 649, 972, 865,
                                  914, 76, 546, 713, 547, 679, 770, 263, 520, 986, 290, 945, 866, 541, 246, 509, 319,
                                  871, 602, 324, 133, 473, 153, 88, 571, 764, 902, 104, 424, 528, 601, 970, 16, 566, 29,
                                  544, 348, 89, 944, 638, 410, 464]) == True


def test_case10():
    assert tripletSum.tripletSum(140,
                                 [469, 999, 84, 640, 516, 622, 994, 827, 723, 839, 829, 582, 400, 979, 892, 24, 944,
                                  835, 244, 350, 703, 708, 503, 142, 688, 347, 892, 638, 414, 401, 817, 691, 163, 936,
                                  127, 411, 878, 383, 261, 190, 706, 875, 664, 723, 196, 567, 361, 39, 589, 812, 246,
                                  468, 426, 868, 190, 543, 64, 548, 503, 618, 100, 24, 227, 204, 49, 52, 571, 637, 459,
                                  968, 457, 406, 532, 963, 820, 976, 557, 532, 496, 45, 592, 804, 389, 916, 451, 320,
                                  273, 792, 384, 134, 776, 643, 570, 301, 955, 79]) == True
