~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to test/rexml/test_notationdecl_mixin.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    XMLEND
32
32
    @doctype = REXML::Document.new(doc_string).doctype
33
33
  end
34
 
  
 
34
 
35
35
  def test_name
36
36
    assert_equal('n1', @doctype.notation('n1').name)
37
37
  end
38
 
  
 
38
 
39
39
  def test_public_2
40
40
    assert_equal(@pubid1, @doctype.notation('n1').public)
41
41
    assert_equal(@pubid2, @doctype.notation('n2').public)
45
45
    assert_equal(@pubid6, @doctype.notation('n6').public)
46
46
    assert_nil(@doctype.notation('n7').public)
47
47
  end
48
 
  
 
48
 
49
49
  def test_system_2
50
50
    assert_equal(@sysid2, @doctype.notation('n2').system)
51
51
    assert_nil(@doctype.notation('n3').system)