summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-07-16 18:33:07 -0600
committerGitHub <noreply@github.com>2020-07-16 18:33:07 -0600
commitef4e2f600b33674e7f3f342ed9650d9121fdcc8e (patch)
tree2be3e03622781af616f66262ed5714ab8954f07e /test
parentca5928d42d3178f0617164ad3a77f0bea317fe3c (diff)
resolves #3714 honor start attribute on ordered list in manpage output (PR #3715)
Diffstat (limited to 'test')
-rw-r--r--test/manpage_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/manpage_test.rb b/test/manpage_test.rb
index fd0923a7..6f768e7b 100644
--- a/test/manpage_test.rb
+++ b/test/manpage_test.rb
@@ -272,6 +272,20 @@ context 'Manpage' do
assert_includes output, %(Oh, here it goes again\nI should have known,\nshould have known,\nshould have known again)
end
+ test 'should honor start attribute on ordered list' do
+ input = <<~EOS.chop
+ #{SAMPLE_MANPAGE_HEADER}
+
+ [start=5]
+ . five
+ . six
+ EOS
+
+ output = Asciidoctor.convert input, backend: :manpage
+ assert_match %r/IP " 5\.".*five/m, output
+ assert_match %r/IP " 6\.".*six/m, output
+ end
+
test 'should collapse whitespace in the man manual and man source' do
input = <<~EOS.chop
#{SAMPLE_MANPAGE_HEADER}