#! /usr/bin/ruby require 'test/unit' require 'rexml/document' class TestNotationDecl < Test::Unit::TestCase def setup doc_string = <<-'XMLEND' ]> XMLEND @doctype = REXML::Document.new(doc_string).doctype end def test_notation assert(@doctype.notation('n1'), "Testing notation n1") assert(@doctype.notation('n2'), "Testing notation n2") end end