diff --git a/src/yaml_to_markdown/md_converter_test.py b/src/yaml_to_markdown/md_converter_test.py index 222189a..d16efc2 100644 --- a/src/yaml_to_markdown/md_converter_test.py +++ b/src/yaml_to_markdown/md_converter_test.py @@ -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 + """ )