8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e24aad commit baf18d3Copy full SHA for baf18d3
tutorial/tests/test_input_output.py
@@ -27,10 +27,10 @@ def test_exercise1(function_to_test):
27
28
def reference_solution_exercise2(f: pl.Path)-> int:
29
with open(f) as lines:
30
- return len(lines.readlines())
+ return len(list(itertools.chain. 5EB2 from_iterable([l.split() for l in lines.readlines()])))
31
32
def test_exercise2(function_to_test):
33
- f = get_data("example.csv")
+ f = get_data("lines.txt")
34
assert function_to_test(f) == reference_solution_exercise2(f)
35
36
0 commit comments