Sha256: f20a8d2b53c2add24c38ef7cad69b5ce77b103ae3ae4c5a459595726b4f7ff97

Contents?: true

Size: 579 Bytes

Versions: 124

Compression:

Stored size: 579 Bytes

Contents

require 'rdoc/test_case'

class TestRDocRd < 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

Version data entries

124 entries across 98 versions & 24 rubygems

Version Path
rdoc-3.10 test/test_rdoc_rd.rb
rdoc-3.10.pre.3 test/test_rdoc_rd.rb
rdoc-3.10.pre.2 test/test_rdoc_rd.rb
rdoc-3.10.pre.1 test/test_rdoc_rd.rb