[前][次][番号順一覧][スレッド一覧]

ruby-changes:30236

From: kou <ko1@a...>
Date: Wed, 31 Jul 2013 22:55:22 +0900 (JST)
Subject: [ruby-changes:30236] kou:r42288 (trunk): * test/rexml/test_notationdecl_mixin.rb: Remove duplicated tests.

kou	2013-07-31 22:55:12 +0900 (Wed, 31 Jul 2013)

  New Revision: 42288

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42288

  Log:
    * test/rexml/test_notationdecl_mixin.rb: Remove duplicated tests.

  Removed files:
    trunk/test/rexml/test_notationdecl_mixin.rb
  Modified files:
    trunk/ChangeLog

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42287)
+++ ChangeLog	(revision 42288)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 31 22:54:39 2013  Kouhei Sutou  <kou@c...>
+
+	* test/rexml/test_notationdecl_mixin.rb: Remove duplicated tests.
+
 Wed Jul 31 22:52:55 2013  Kouhei Sutou  <kou@c...>
 
 	* test/rexml/test_notationdecl_parsetest.rb: Fix typos in expected
Index: test/rexml/test_notationdecl_mixin.rb
===================================================================
--- test/rexml/test_notationdecl_mixin.rb	(revision 42287)
+++ test/rexml/test_notationdecl_mixin.rb	(revision 42288)
@@ -1,51 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/test/rexml/test_notationdecl_mixin.rb#L0
-require 'test/unit'
-require 'rexml/document'
-
-class TestNotationDeclMixin < Test::Unit::TestCase
-  def setup
-    @pubid1 = "TEST1"
-    @pubid2 = "TEST2"
-    @sysid2 = "urn:x-henrikmartensson.org:test2"
-    @pubid3 = "TEST3"
-    @pubid4 = "TEST4"
-    @sysid4 = "urn:x-henrikmartensson.org:test4"
-    @pubid5 = "TEST5"
-    @sysid5 = "urn:x-henrikmartensson.org:test5"
-    @pubid6 = "TEST6"
-    @sysid6 = "urn:x-henrikmartensson.org:test6"
-    @sysid7 = "urn:x-henrikmartensson.org:test7"
-    doc_string = <<-"XMLEND"
-    <!DOCTYPE r SYSTEM "urn:x-henrikmartensson:test" [
-      <!NOTATION n1 PUBLIC "#{@pubid1}">
-      <!NOTATION n2 PUBLIC "#{@pubid2}" "#{@sysid2}">
-      <!NOTATION n3 PUBLIC '#{@pubid3}'>
-      <!NOTATION n4 PUBLIC '#{@pubid4}' '#{@sysid4}'>
-      <!NOTATION n5 PUBLIC "#{@pubid5}" '#{@sysid5}'>
-      <!NOTATION n6 PUBLIC '#{@pubid6}' "#{@sysid6}">
-      <!NOTATION n7 SYSTEM "#{@sysid7}">
-    ]>
-    <r/>
-    XMLEND
-    @doctype = REXML::Document.new(doc_string).doctype
-  end
-
-  def test_public_2
-    assert_equal(@pubid1, @doctype.notation('n1').public)
-    assert_equal(@pubid2, @doctype.notation('n2').public)
-    assert_equal(@pubid3, @doctype.notation('n3').public)
-    assert_equal(@pubid4, @doctype.notation('n4').public)
-    assert_equal(@pubid5, @doctype.notation('n5').public)
-    assert_equal(@pubid6, @doctype.notation('n6').public)
-    assert_nil(@doctype.notation('n7').public)
-  end
-
-  def test_system_2
-    assert_equal(@sysid2, @doctype.notation('n2').system)
-    assert_nil(@doctype.notation('n3').system)
-    assert_equal(@sysid4, @doctype.notation('n4').system)
-    assert_equal(@sysid5, @doctype.notation('n5').system)
-    assert_equal(@sysid6, @doctype.notation('n6').system)
-    assert_equal(@sysid7, @doctype.notation('n7').system)
-  end
-
-end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]