Commit d4e2575b by Sanjay Krishnan

Updated for release

parent ab8c8e48
Showing with 6 additions and 2 deletions
...@@ -6,9 +6,13 @@ import json ...@@ -6,9 +6,13 @@ import json
test_file = open('years.json','r') test_file = open('years.json','r')
expected = json.loads(test_file.read()) expected = json.loads(test_file.read())
for l in range(80, 140, 20): for l in range(80, 140, 10):
m = MemoryLimitedHashMap(limit = l) m = MemoryLimitedHashMap(limit = l)
actual = {k:v for k,v in Count(imdb_years(), m)} actual = {k:v for k,v in Count(imdb_years(), m)}
print("Memory Limit", l, expected == actual)
try:
assert(expected == actual)
except:
print("[#1] Failed for Memory Limit", l)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment