mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/ripper/test_lexer.rb: add test for r62743
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
67bb95936d
commit
0e60fdc511
1 changed files with 5 additions and 0 deletions
|
@ -90,4 +90,9 @@ class TestRipper::Lexer < Test::Unit::TestCase
|
|||
]
|
||||
assert_equal expect, Ripper.lex(src).map {|e| e[1]}
|
||||
end
|
||||
|
||||
def test_slice
|
||||
assert_equal "string\#{nil}\n",
|
||||
Ripper.slice(%(<<HERE\nstring\#{nil}\nHERE), "heredoc_beg .*? nl $(.*?) heredoc_end", 1)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue