Skip to content

Commit 2860f04

Browse files
committed
add test for docstring
Signed-off-by: Thijs Baaijen <[email protected]>
1 parent 4866e6b commit 2860f04

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/unit/model/grids/test_grid_base.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,19 @@ def test_from_txt_string_with_spaces(self):
301301
txt_string = "S1 2 \nS1 3 open\n2 7\n3 5\n 3 6 transformer\n5 7\n7 8\n8 9"
302302
assert Grid.from_txt(txt_string)
303303

304+
def test_from_docstring(self):
305+
txt_string = """
306+
S1 2
307+
S1 3 open
308+
2 7
309+
3 5
310+
3 6 transformer
311+
5 7
312+
7 8
313+
8 9
314+
"""
315+
assert Grid.from_txt(txt_string)
316+
304317
def test_from_txt_with_branch_ids(self):
305318
txt_lines = [
306319
"S1 2 91",

0 commit comments

Comments
 (0)