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
@ -90,4 +90,9 @@ class TestRipper::Lexer < Test::Unit::TestCase
|
|||||||
]
|
]
|
||||||
assert_equal expect, Ripper.lex(src).map {|e| e[1]}
|
assert_equal expect, Ripper.lex(src).map {|e| e[1]}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_slice
|
||||||
|
assert_equal "string\#{nil}\n",
|
||||||
|
Ripper.slice(%(<<HERE\nstring\#{nil}\nHERE), "heredoc_beg .*? nl $(.*?) heredoc_end", 1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user