diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2024-05-16 18:09:11 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2024-05-16 18:09:11 -0600 |
| commit | 62a00bffe7d7dabae70a2b8a223fa0eca0b21bf8 (patch) | |
| tree | f1ec11b818806e73ae52161835b6b7162edd40e9 | |
| parent | 669e6ea5be629eef76cb102c0f73fa02578e63f7 (diff) | |
really fix test for old JRuby
| -rw-r--r-- | test/manpage_test.rb | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/test/manpage_test.rb b/test/manpage_test.rb index 4ec7e392..1a6eed17 100644 --- a/test/manpage_test.rb +++ b/test/manpage_test.rb @@ -365,18 +365,19 @@ context 'Manpage' do 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 |
