summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 06:30:37 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 06:30:37 +0000
commit4ddbd24eb3ef1ff78f082e4671279f7cfb069b5b (patch)
tree7791bed3dbf280350bf8028ce2ff0d5000ee12b6 /test/rdoc
parent16ecc7c796026daaa29c507fbed25832e2268a6c (diff)
Sort methods in TestSimpleMarkupAttributeManager
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_simple_markup_attribute_manager.rb44
1 files changed, 22 insertions, 22 deletions
diff --git a/test/rdoc/test_simple_markup_attribute_manager.rb b/test/rdoc/test_simple_markup_attribute_manager.rb
index ebcaf8c..c37d821 100644
--- a/test/rdoc/test_simple_markup_attribute_manager.rb
+++ b/test/rdoc/test_simple_markup_attribute_manager.rb
@@ -37,24 +37,10 @@ class TestSimpleMarkupAttributeManager < Test::Unit::TestCase
]
end
- def test_special
- # class names, variable names, file names, or instance variables
- @am.add_special(/(
- \b([A-Z]\w+(::\w+)*)
- | \#\w+[!?=]?
- | \b\w+([_\/\.]+\w+)+[!?=]?
- )/x,
- :CROSSREF)
-
- assert_equal(["cat"], @am.flow("cat"))
-
- assert_equal(["cat ", crossref("#fred"), " dog"].flatten,
- @am.flow("cat #fred dog"))
-
- assert_equal([crossref("#fred"), " dog"].flatten,
- @am.flow("#fred dog"))
-
- assert_equal(["cat ", crossref("#fred")].flatten, @am.flow("cat #fred"))
+ def test_adding
+ assert_equal(["cat ", @wombat_on, "and", @wombat_off, " dog" ],
+ @am.flow("cat {and} dog"))
+ #assert_equal(["cat {and} dog" ], @am.flow("cat \\{and} dog"))
end
def test_basic
@@ -143,10 +129,24 @@ class TestSimpleMarkupAttributeManager < Test::Unit::TestCase
@am.flow("\\_cat_<i>dog</i>"))
end
- def test_adding
- assert_equal(["cat ", @wombat_on, "and", @wombat_off, " dog" ],
- @am.flow("cat {and} dog"))
-# assert_equal(["cat {and} dog" ], @am.flow("cat \\{and} dog"))
+ def test_special
+ # class names, variable names, file names, or instance variables
+ @am.add_special(/(
+ \b([A-Z]\w+(::\w+)*)
+ | \#\w+[!?=]?
+ | \b\w+([_\/\.]+\w+)+[!?=]?
+ )/x,
+ :CROSSREF)
+
+ assert_equal(["cat"], @am.flow("cat"))
+
+ assert_equal(["cat ", crossref("#fred"), " dog"].flatten,
+ @am.flow("cat #fred dog"))
+
+ assert_equal([crossref("#fred"), " dog"].flatten,
+ @am.flow("#fred dog"))
+
+ assert_equal(["cat ", crossref("#fred")].flatten, @am.flow("cat #fred"))
end
end