ruby-changes:50596
From: k0kubun <ko1@a...>
Date: Tue, 13 Mar 2018 22:03:18 +0900 (JST)
Subject: [ruby-changes:50596] k0kubun:r62744 (trunk): test/ripper/test_lexer.rb: add test for r62743
k0kubun 2018-03-13 22:03:12 +0900 (Tue, 13 Mar 2018) New Revision: 62744 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62744 Log: test/ripper/test_lexer.rb: add test for r62743 Modified files: trunk/test/ripper/test_lexer.rb Index: test/ripper/test_lexer.rb =================================================================== --- test/ripper/test_lexer.rb (revision 62743) +++ test/ripper/test_lexer.rb (revision 62744) @@ -90,4 +90,9 @@ class TestRipper::Lexer < Test::Unit::Te https://github.com/ruby/ruby/blob/trunk/test/ripper/test_lexer.rb#L90 ] 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/