summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-29 22:45:13 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-29 22:45:13 +0000
commit97442d30a54b5755176f865d4d67255e6225b235 (patch)
treea93c5310e4930b3ddf37c226942b814fb46f75e6 /test/ruby
parent49aadcd76b9ab48c4cebbf542379d7b0f2d6a117 (diff)
downloadruby-97442d30a54b5755176f865d4d67255e6225b235.tar.gz
ruby-97442d30a54b5755176f865d4d67255e6225b235.tar.xz
ruby-97442d30a54b5755176f865d4d67255e6225b235.zip
add test for [ruby-dev:24643].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_regexp.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
new file mode 100644
index 000000000..ea78abdc4
--- /dev/null
+++ b/test/ruby/test_regexp.rb
@@ -0,0 +1,7 @@
+require 'test/unit'
+
+class TestRegexp < Test::Unit::TestCase
+ def test_undefined_bytecode_bug
+ assert_nothing_raised("[ruby-dev:24643]") { /(?:(?:[a]*[a])?b)*a*$/ =~ "aabaaca" }
+ end
+end