From 7c03c82444220a4d1425cf801fa6a5d3d253b835 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 6 Oct 2022 17:26:21 +0900 Subject: [ruby/rdoc] Allow escaped pipes in cells https://github.com/ruby/rdoc/commit/333952a62d --- test/rdoc/test_rdoc_markdown.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/rdoc') 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)) -- cgit v1.2.3