diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2024-05-16 17:28:14 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2024-05-16 17:28:14 -0600 |
| commit | 669e6ea5be629eef76cb102c0f73fa02578e63f7 (patch) | |
| tree | c5b3bd8ca3c643b67ce0114d706bfa371bcec57a | |
| parent | 765cd853ce1211c68083596aa4f1ed56213fc68f (diff) | |
fix test for old version of JRuby
| -rw-r--r-- | test/manpage_test.rb | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/test/manpage_test.rb b/test/manpage_test.rb index 5e0bbd80..4ec7e392 100644 --- a/test/manpage_test.rb +++ b/test/manpage_test.rb @@ -353,28 +353,28 @@ context 'Manpage' do #{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 |
