summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_markup_paragraph.rb
blob: 15f3b5f8497b4cc0c8100eae471455ed6a879c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'pp'
require 'rubygems'
require 'minitest/autorun'
require 'rdoc/markup'

class TestRDocMarkupParagraph < MiniTest::Unit::TestCase

  def setup
    @RM = RDoc::Markup
    @p = @RM::Paragraph.new
  end

  def mu_pp obj
    s = ''
    s = PP.pp obj, s
    s.force_encoding Encoding.default_external if defined? Encoding
    s.chomp
  end

  def test_push
    @p.push 'hi', 'there'

    assert_equal @RM::Paragraph.new('hi', 'there'), @p
  end

end