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 4866e6b commit 2860f04Copy full SHA for 2860f04
tests/unit/model/grids/test_grid_base.py
@@ -301,6 +301,19 @@ def test_from_txt_string_with_spaces(self):
301
txt_string = "S1 2 \nS1 3 open\n2 7\n3 5\n 3 6 transformer\n5 7\n7 8\n8 9"
302
assert Grid.from_txt(txt_string)
303
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
+
317
def test_from_txt_with_branch_ids(self):
318
txt_lines = [
319
"S1 2 91",
0 commit comments