mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
Sync RDoc 6.14.0
This commit is contained in:
parent
ca1ea95784
commit
03eb777c69
185 changed files with 2008 additions and 1655 deletions
30
test/rdoc/rdoc_rd_test.rb
Normal file
30
test/rdoc/rdoc_rd_test.rb
Normal file
|
@ -0,0 +1,30 @@
|
|||
# frozen_string_literal: true
|
||||
require_relative 'helper'
|
||||
|
||||
class RDocRdTest < RDoc::TestCase
|
||||
|
||||
def test_class_parse
|
||||
expected =
|
||||
@RM::Document.new(
|
||||
@RM::Paragraph.new('hello'))
|
||||
|
||||
assert_equal expected, RDoc::RD.parse("hello")
|
||||
end
|
||||
|
||||
def test_class_parse_begin_end
|
||||
expected =
|
||||
@RM::Document.new(
|
||||
@RM::Paragraph.new('hello'))
|
||||
|
||||
assert_equal expected, RDoc::RD.parse("=begin\nhello\n=end\n")
|
||||
end
|
||||
|
||||
def test_class_parse_newline
|
||||
expected =
|
||||
@RM::Document.new(
|
||||
@RM::Paragraph.new('hello'))
|
||||
|
||||
assert_equal expected, RDoc::RD.parse("hello\n")
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue