Skip to content

Commit

Permalink
really fix test for old JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed May 17, 2024
1 parent 669e6ea commit 62a00bf
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions test/manpage_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -365,18 +365,19 @@
EOS

output = Asciidoctor.convert input, backend: :manpage
assert_includes output, <<~'EOS'.lines.map {|it| it.chr == '.' ? it : ' ' + it }.join
.fam C
,\-\-\-.\& ,\-\-\-\-\-.
|Bob|\& |Alice|
`\-+\-\*(Aq\& `\-\-+\-\-\*(Aq
|\& hello\& |
|\-\-\-\-\-\-\-\-\-\-\-\-\-\->|
,\-+\-.\& ,\-\-+\-\-.
|Bob|\& |Alice|
`\-\-\-\*(Aq\& `\-\-\-\-\-\*(Aq
.fam
EOS
expects = <<~'EOS'.lines.map {|it| (' ' * it.chr.to_i) + (it.slice 1, it.length) }.join
0.fam C
2,\-\-\-.\& ,\-\-\-\-\-.
2|Bob|\& |Alice|
2`\-+\-\*(Aq\& `\-\-+\-\-\*(Aq
4|\& hello\& |
4|\-\-\-\-\-\-\-\-\-\-\-\-\-\->|
2,\-+\-.\& ,\-\-+\-\-.
2|Bob|\& |Alice|
2`\-\-\-\*(Aq\& `\-\-\-\-\-\*(Aq
0.fam
EOS
assert_includes output, expects
end

test 'should preserve break between paragraphs in normal table cell' do
Expand Down

0 comments on commit 62a00bf

Please sign in to comment.