Skip to content

Commit

Permalink
Add testcase for nested markdown lists.
Browse files Browse the repository at this point in the history
This will address github's issue #131.
  • Loading branch information
toddy15 committed Jun 17, 2018
1 parent e8dfa4c commit 5658ace
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/20-text.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ push @tests, {
};

my @markdown_tests = qw(MarkDown PandocHeaderMultipleLines PandocOnlyAuthor
PandocTitleAndDate PandocMultipleAuthors PandocOnlyTitle PandocTitleAuthors);
PandocTitleAndDate PandocMultipleAuthors PandocOnlyTitle PandocTitleAuthors
MarkDownNestedLists);
for my $markdown_test (@markdown_tests) {
push @tests, {
'run' => "perl ../../po4a-normalize -f text -o markdown ../t-20-text/$markdown_test.md > $markdown_test.err 2>&1".
Expand Down
Empty file.
8 changes: 8 additions & 0 deletions t/t-20-text/MarkDownNestedLists.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This serves as testcase for nested lists.

* Item 1
* Item 2
* Nested item 1
* Nested item 2

Normal paragraph.
8 changes: 8 additions & 0 deletions t/t-20-text/MarkDownNestedLists.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This serves as testcase for nested lists.

* Item 1
* Item 2
* Nested item 1
* Nested item 2

Normal paragraph.
41 changes: 41 additions & 0 deletions t/t-20-text/MarkDownNestedLists.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2018-06-17 12:06+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#. type: Plain text
#: MarkDownNestedLists.md:2
msgid "This serves as testcase for nested lists."
msgstr ""

#. type: Bullet: ' * '
#: MarkDownNestedLists.md:7
msgid "Item 1"
msgstr ""

#. type: Plain text
#: MarkDownNestedLists.md:7
#, no-wrap
msgid ""
" * Item 2\n"
" * Nested item 1\n"
" * Nested item 2\n"
msgstr ""

#. type: Plain text
#: MarkDownNestedLists.md:8
msgid "Normal paragraph."
msgstr ""

0 comments on commit 5658ace

Please sign in to comment.