summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-06 17:26:21 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-06 23:17:49 +0900
commit7c03c82444220a4d1425cf801fa6a5d3d253b835 (patch)
tree26b1af29e3e436b6282dea9a649e3e7a0dbfed06 /test/rdoc
parentf6c916c7ef546b5ed59ac5ca5f5a0a547accdf3c (diff)
[ruby/rdoc] Allow escaped pipes in cells
https://github.com/ruby/rdoc/commit/333952a62d
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_markdown.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rdoc/test_rdoc_markdown.rb b/test/rdoc/test_rdoc_markdown.rb
index 1b13e2e7e6..a02ff7c8cc 100644
--- a/test/rdoc/test_rdoc_markdown.rb
+++ b/test/rdoc/test_rdoc_markdown.rb
@@ -1063,11 +1063,12 @@ and an extra note.[^2]
end
def test_gfm_table_2
- doc = parse <<~MD
+ doc = parse <<~'MD'
| Cmd | Returns | Meaning
------|---------|--------
|"b" | boolean | True if file1 is a block device
"c" | boolean | True if file1 is a character device
+ |"\|" | boolean | escaped bar \| test
MD
head = %w[Cmd Returns Meaning]
@@ -1075,6 +1076,7 @@ and an extra note.[^2]
body = [
['"b"', 'boolean', 'True if file1 is a block device'],
['"c"', 'boolean', 'True if file1 is a character device'],
+ ['"|"', 'boolean', 'escaped bar | test'],
]
expected = doc(@RM::Table.new(head, align, body))