1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rdoc.rb, lib/rdoc, test/rdoc: Update to RDoc 4.2.0.alpha(21b241a)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2014-09-11 01:03:22 +00:00
parent 02dade3b9e
commit 80325bab52
8 changed files with 55 additions and 5 deletions

View file

@ -231,6 +231,17 @@ U
assert_equal expected, tokens
end
def test_class_tokenize_percent_w_quote
tokens = RDoc::RubyLex.tokenize '%w"hi"', nil
expected = [
@TK::TkDSTRING.new( 0, 1, 0, '%w"hi"'),
@TK::TkNL .new( 6, 1, 6, "\n"),
]
assert_equal expected, tokens
end
def test_class_tokenize_regexp
tokens = RDoc::RubyLex.tokenize "/hay/", nil