diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-16 23:28:31 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-16 23:28:31 +0000 |
| commit | b0b943cb60269aadde71ed5e5f9c33a4da4f36a4 (patch) | |
| tree | 3f9afe4bebd166e30e9f9c73cada34d2a51a6b7b /sample | |
| parent | 5aa727581530decbd185ba327b30076a2a89790a (diff) | |
| download | ruby-b0b943cb60269aadde71ed5e5f9c33a4da4f36a4.tar.gz ruby-b0b943cb60269aadde71ed5e5f9c33a4da4f36a4.tar.xz ruby-b0b943cb60269aadde71ed5e5f9c33a4da4f36a4.zip | |
* object.c (rb_class_allocate_instance): singleton class check
moved to rb_obj_alloc(). (ruby-bugs-ja PR#345)
* re.c (rb_reg_quote): should escape white space characters,
\t, \f, \n, \r. (ruby-bugs-ja PR#231)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
| -rw-r--r-- | sample/test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sample/test.rb b/sample/test.rb index 32b79a61f..d49e7a3e2 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -1194,6 +1194,13 @@ test_ok(-1045307475.to_s(36) == "-hacker") test_ok("Just_another_Ruby_hacker".to_i(36) == 265419172580680477752431643787347) test_ok(-265419172580680477752431643787347.to_s(36) == "-justanotherrubyhacker") +a = [] +(0..255).each {|n| + ch = [n].pack("C") + a.push ch if /a#{Regexp.quote ch}b/x =~ "ab" +} +test_ok(a.size == 0) + test_check "assignment" a = nil test_ok(defined?(a)) |
