Skip to content

Instantly share code, notes, and snippets.

@aljorhythm
Created May 17, 2020 10:41
Show Gist options
  • Save aljorhythm/e2381828405d9c922bbc3f9e85b467a9 to your computer and use it in GitHub Desktop.
Save aljorhythm/e2381828405d9c922bbc3f9e85b467a9 to your computer and use it in GitHub Desktop.
io = [
[
[[[-2,0],[2,0],[0,2],[0,-2]], 2], #input
4 #output
],
[
[[[-3, 0], [3, 0], [2, 6], [5, 4], [0, 9], [7, 8]], 5],
5
]
]
results = []
for (i, o) in io[:0]:
result = numPoints(i[0], i[1]) # the method to test
print(result)
print(result == o)
results.append((result == o, result))
print(results)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment