diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-18 15:56:38 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-18 15:56:38 +0000 |
| commit | f6b776a8b55eb97c826cd0fefc16142f469495f4 (patch) | |
| tree | cf39c49b1154844807aa3649ef40b34f27c948d1 /test/ruby | |
| parent | 67af5198f67d96f87cdadb5f1be4a24de82e717b (diff) | |
| download | ruby-f6b776a8b55eb97c826cd0fefc16142f469495f4.tar.gz ruby-f6b776a8b55eb97c826cd0fefc16142f469495f4.tar.xz ruby-f6b776a8b55eb97c826cd0fefc16142f469495f4.zip | |
* re.c (rb_reg_inspect): don't raise for uninitialized Regexp.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_regexp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index bce362e34..ad222c548 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -686,7 +686,7 @@ class TestRegexp < Test::Unit::TestCase assert_nil(~Regexp.allocate) assert_raise(TypeError) { Regexp.allocate.match("") } assert_raise(TypeError) { Regexp.allocate.to_s } - assert_raise(TypeError) { Regexp.allocate.inspect } + assert_match(/^#<Regexp:.*>$/, Regexp.allocate.inspect) assert_raise(TypeError) { Regexp.allocate.source } assert_raise(TypeError) { Regexp.allocate.casefold? } assert_raise(TypeError) { Regexp.allocate.options } |
