test/test_markdownbuilder.rb in review-1.7.1 vs test/test_markdownbuilder.rb in review-1.7.2
- old
+ new
@@ -60,9 +60,26 @@
def test_cmd
actual = compile_block("//cmd{\nlineA\nlineB\n//}\n")
assert_equal "```shell-session\nlineA\nlineB\n```\n", actual
end
+
+ def test_dlist
+ actual = compile_block(": foo\n foo.\n bar.\n")
+ assert_equal %Q|<dl>\n<dt>foo</dt>\n<dd>foo.bar.</dd>\n</dl>\n|, actual
+ end
+
+ def test_dlist_with_bracket
+ actual = compile_block(": foo[bar]\n foo.\n bar.\n")
+ assert_equal %Q|<dl>\n<dt>foo[bar]</dt>\n<dd>foo.bar.</dd>\n</dl>\n|, actual
+ end
+
+ def test_dlist_with_comment
+ source = ": title\n body\n\#@ comment\n\#@ comment\n: title2\n body2\n"
+ actual = compile_block(source)
+ assert_equal %Q|<dl>\n<dt>title</dt>\n<dd>body</dd>\n<dt>title2</dt>\n<dd>body2</dd>\n</dl>\n|, actual
+ end
+
def test_list
actual = compile_block(<<-EOS)
//list[name][caption]{
AAA
BBB