aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc/test_rdoc_markup_parser.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-07 22:23:38 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-07 22:23:38 +0000
commitba6ae341bab83dfc7a624c5bf20d8d162dacaff9 (patch)
tree540581a54cefcdc817577f646f09372f7e9936d1 /test/rdoc/test_rdoc_markup_parser.rb
parentbf51c067b92361007a57909c539591d3d00cdbd8 (diff)
downloadruby-ba6ae341bab83dfc7a624c5bf20d8d162dacaff9.tar.gz
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0.beta2
Fixed ri parse defect with left-hand matched classes. https://github.com/rdoc/rdoc/pull/420 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_markup_parser.rb')
-rw-r--r--test/rdoc/test_rdoc_markup_parser.rb17
1 files changed, 2 insertions, 15 deletions
diff --git a/test/rdoc/test_rdoc_markup_parser.rb b/test/rdoc/test_rdoc_markup_parser.rb
index e9986553c0..849d19f8c7 100644
--- a/test/rdoc/test_rdoc_markup_parser.rb
+++ b/test/rdoc/test_rdoc_markup_parser.rb
@@ -8,8 +8,6 @@ class TestRDocMarkupParser < RDoc::TestCase
def setup
super
- @have_byteslice = ''.respond_to? :byteslice
-
@RMP = @RM::Parser
end
@@ -30,11 +28,7 @@ class TestRDocMarkupParser < RDoc::TestCase
s.scan(/\S+/)
- if @have_byteslice or @have_encoding then
- assert_equal 3, parser.char_pos(s.pos)
- else
- assert_equal 4, parser.char_pos(s.pos)
- end
+ assert_equal 3, parser.char_pos(s.pos)
end
def test_get
@@ -1360,8 +1354,6 @@ cat::
end
def test_tokenize_note_utf_8
- skip 'Encoding not implemented' unless @have_encoding
-
str = <<-STR
cät:: l1a
l1b
@@ -1626,11 +1618,7 @@ Example heading:
s.scan(/\S+/)
- if @have_encoding or @have_byteslice then
- assert_equal [3, 0], parser.token_pos(s.pos)
- else
- assert_equal [4, 0], parser.token_pos(s.pos)
- end
+ assert_equal [3, 0], parser.token_pos(s.pos)
end
# HACK move to Verbatim test case
@@ -1678,4 +1666,3 @@ some more text over here
end
end
-