diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 08:43:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 08:43:42 +0000 |
commit | 1dbc720c0d91bfdb39dbef75606d5cd4ef4d9884 (patch) | |
tree | 30b8d0c9866957f05473bbed5e49fa45b98a4621 /test | |
parent | 981f9c52c6b0d7197e098ae9a0375485cf0c9c0c (diff) | |
download | ruby-1dbc720c0d91bfdb39dbef75606d5cd4ef4d9884.tar.gz |
string.c: always fixed value
* string.c (rb_str_cmp_m): return fixed value, one of -1,0,+1 always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 e4e6c39663..6c73a7ccc7 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -181,7 +181,7 @@ class TestString < Test::Unit::TestCase class << o;remove_method :<=>;end def o.<=>(x); 2**100; end - assert_equal(-(2**100), "foo" <=> o) + assert_equal(-1, "foo" <=> o) end def test_EQUAL # '==' |