Skip to content

Commit

Permalink
Added more tests for the convert_ulist() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhradilek committed Nov 12, 2024
1 parent 27aa989 commit 5b1e031
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/test_ulist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,15 @@ def test_checklist
assert_xpath_equal xml, '✓ Item two', '//ul/li[2]/text()'
assert_xpath_equal xml, '❏ Item three', '//ul/li[3]/text()'
end

def test_unordered_list_title
xml = <<~EOF.chomp.to_dita
.An unordered list title
* Item one
* Item two
EOF

assert_xpath_equal xml, 'An unordered list title', '//p[@outputclass="title"]/b/text()'
assert_xpath_count xml, 2, '//ul/li'
end
end

0 comments on commit 5b1e031

Please sign in to comment.