diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-19 05:36:43 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-19 05:36:43 +0000 |
| commit | de8009a9d1ca5c1bee9af8f4a904c75b32049bb9 (patch) | |
| tree | 134e5f87be2fa1e6b876c268f1d04801f703c86d /test/ruby | |
| parent | 1a328da16a7eb5f0e5b5841df6b880c99893b48e (diff) | |
| download | ruby-de8009a9d1ca5c1bee9af8f4a904c75b32049bb9.tar.gz ruby-de8009a9d1ca5c1bee9af8f4a904c75b32049bb9.tar.xz ruby-de8009a9d1ca5c1bee9af8f4a904c75b32049bb9.zip | |
* bignum.c (rb_cstr_to_inum): treat successive underscores as
nondigit. [ruby-dev:34089]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_string.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index ed4b667a4..c71be7d09 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -1213,7 +1213,7 @@ class TestString < Test::Unit::TestCase assert_equal(12, "1_2".to_i(10)) assert_equal(0x40000000, "1073741824".to_i(10)) assert_equal(0x4000000000000000, "4611686018427387904".to_i(10)) - assert_equal(12, "1__2".to_i(10)) + assert_equal(1, "1__2".to_i(10)) assert_equal(1, "1_z".to_i(10)) end |
