Skip to content

Commit

Permalink
fix test for old version of JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed May 16, 2024
1 parent 765cd85 commit 669e6ea
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions test/manpage_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -353,28 +353,28 @@
#{SAMPLE_MANPAGE_HEADER}
....
,---. ,-----.
|Bob| |Alice|
`-+-' `--+--'
| hello |
|-------------->|
,-+-. ,--+--.
|Bob| |Alice|
`---' `-----'
\x20 ,---. ,-----.
\x20 |Bob| |Alice|
\x20 `-+-' `--+--'
\x20 | hello |
\x20 |-------------->|
\x20 ,-+-. ,--+--.
\x20 |Bob| |Alice|
\x20 `---' `-----'
....
EOS

output = Asciidoctor.convert input, backend: :manpage
assert_includes output, <<~'EOS'
assert_includes output, <<~'EOS'.lines.map {|it| it.chr == '.' ? it : ' ' + it }.join
.fam C
,\-\-\-.\& ,\-\-\-\-\-.
|Bob|\& |Alice|
`\-+\-\*(Aq\& `\-\-+\-\-\*(Aq
|\& hello\& |
|\-\-\-\-\-\-\-\-\-\-\-\-\-\->|
,\-+\-.\& ,\-\-+\-\-.
|Bob|\& |Alice|
`\-\-\-\*(Aq\& `\-\-\-\-\-\*(Aq
,\-\-\-.\& ,\-\-\-\-\-.
|Bob|\& |Alice|
`\-+\-\*(Aq\& `\-\-+\-\-\*(Aq
|\& hello\& |
|\-\-\-\-\-\-\-\-\-\-\-\-\-\->|
,\-+\-.\& ,\-\-+\-\-.
|Bob|\& |Alice|
`\-\-\-\*(Aq\& `\-\-\-\-\-\*(Aq
.fam
EOS
end
Expand Down

0 comments on commit 669e6ea

Please sign in to comment.