Skip to content

Commit 34c1893

Browse files
authored
Merge pull request #561 from sir-gon/develop
New library to simplify data loading from JSON files (for unit tests)
2 parents 5f2374b + 8ceb083 commit 34c1893

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/hackerrank/lib/loader.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import json
2+
3+
4+
def load_test_cases(filename: str):
5+
with open(filename, encoding="utf-8"
6+
) as file:
7+
return json.load(file)

0 commit comments

Comments
 (0)