summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-19 17:10:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-19 17:10:35 +0000
commit098127dc2bc417419490a83b94b3e179389828b0 (patch)
treef59869d32e68aad1b07be4bfecdef4fe7cb970b5 /test
parent3cdbc18f57cee5c871211bfe4f47bf269e0e53f6 (diff)
parse.y: regexp error in ripper
* parse.y (ripper_flush_string_content, parser_parse_string): preserve parsed string content. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ripper/test_sexp.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ripper/test_sexp.rb b/test/ripper/test_sexp.rb
index 92df1ae..9be4aa7 100644
--- a/test/ripper/test_sexp.rb
+++ b/test/ripper/test_sexp.rb
@@ -14,5 +14,8 @@ class TestRipper::Sexp < Test::Unit::TestCase
assert_nil Ripper.sexp("*")
assert_nil Ripper.sexp("end")
assert_nil Ripper.sexp("end 1")
+ assert_nil Ripper.sexp("/*")
+ assert_nil Ripper.sexp("/*/")
+ assert_nil Ripper.sexp("/+/")
end
end if ripper_test