summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_markup_parser.rb
diff options
context:
space:
mode:
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
-