[ruby/rdoc] Fix ToRdoc#accept_table

(https://github.com/ruby/rdoc/pull/1184)

7b68545094
This commit is contained in:
tomoya ishida 2024-10-03 21:27:39 +09:00 committed by git
parent b421964b9d
commit 218445bb1f
6 changed files with 65 additions and 4 deletions

View file

@ -346,6 +346,17 @@ words words words words
assert_equal expected, @to.end_accepting
end
def accept_table_align
expected = <<-EXPECTED
AA |BB |CCCCC
----|---|-----
|bbb| c
aaaa|b |
a | | cc
EXPECTED
assert_equal expected, @to.end_accepting
end
# functional test
def test_convert_list_note
note_list = <<-NOTE_LIST