Skip to content

Commit

Permalink
Add test for List of lists
Browse files Browse the repository at this point in the history
  • Loading branch information
anevis committed Apr 7, 2024
1 parent 798f545 commit a0214d9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/yaml_to_markdown/md_converter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,25 @@ def test_process_list(self) -> None:
| Section1 |
| --- |
| data1 |
"""
)

def test_process_list_of_list(self) -> None:
output_writer = StringIO()
md_converter = MDConverter()
data = [["list1 data1", "list1 data2"], ["list2 data1", "list2 data2"]]

md_converter.convert(data, output_writer)
output = output_writer.getvalue()

assert (
output
== """##
* list1 data1
* list1 data2
* list2 data1
* list2 data2
"""
)

Expand Down

0 comments on commit a0214d9

Please sign in to comment.