Created
November 18, 2016 11:45
-
-
Save moltak/97533ffd6839e90501f115142df78644 to your computer and use it in GitHub Desktop.
test.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import solve | |
def test_first(): | |
arg = [] | |
arg.append((1, 3)) | |
arg.append([3]) | |
result = solve.kSums(arg) | |
assert result[0] == 1 | |
def test_second(): | |
arg = [] | |
arg.append((5, 2)) | |
arg.append((4, 10, 14, 20, 26)) | |
result = solve.kSums(arg) | |
assert result[0] == 2 | |
assert result[1] == 8 | |
assert result[2] == 12 | |
assert result[3] == 18 | |
assert result[4] == 24 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment