File tree 2 files changed +2
-4
lines changed
exercises/practice/pascals-triangle
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
{% - import "generator_macros.j2" as macros with context -%}
2
+ import sys
2
3
{{ macros.header() }}
3
4
4
5
TRIANGLE = [
@@ -28,8 +29,6 @@ class {{ exercise | camel_case }}Test(unittest.TestCase):
28
29
{% endfor %}
29
30
30
31
# Additional tests for this track
31
- import sys
32
-
33
32
{% for case in additional_cases -%}
34
33
def test_{{ case["description"] | to_snake }}(self):
35
34
{% - if case is error_case %}
Original file line number Diff line number Diff line change
1
+ import sys
1
2
import unittest
2
3
3
4
from pascals_triangle import (
@@ -46,8 +47,6 @@ def test_ten_rows(self):
46
47
self .assertEqual (rows (10 ), TRIANGLE [:10 ])
47
48
48
49
# Additional tests for this track
49
- import sys
50
-
51
50
def test_negative_rows_are_invalid (self ):
52
51
with self .assertRaises (ValueError ) as err :
53
52
rows (- 1 )
You can’t perform that action at this time.
0 commit comments