diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-18 08:56:51 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-18 08:56:51 +0000 |
commit | b487727ea43de143996d0a802813bbf39ee2b043 (patch) | |
tree | 9a1cbe98ff8ab7e5c8b02b024e46b142e84c2e1b | |
parent | 35f851bcfe7e42ddf1b44606d2df4d4be9de9976 (diff) | |
download | ruby-b487727ea43de143996d0a802813bbf39ee2b043.tar.gz |
* sample/test.rb: Hash#indexes -> Hash#select.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | sample/test.rb | 2 |
2 files changed, 7 insertions, 3 deletions
@@ -1,12 +1,16 @@ -Mon Dec 17 18:53:49 2001 K.Kosako <kosako@sofnec.co.jp> +Tue Dec 18 17:54:53 2001 WATANABE Hirofumi <eban@ruby-lang.org> - * string.c (rb_str_replace): swap arguments of OBJ_INFECT. + * sample/test.rb: Hash#indexes -> Hash#select. Tue Dec 18 01:02:13 2001 Yukihiro Matsumoto <matz@ruby-lang.org> * eval.c (rb_thread_schedule): should not select a thread which is not yet initialized. +Mon Dec 17 18:53:49 2001 K.Kosako <kosako@sofnec.co.jp> + + * string.c (rb_str_replace): swap arguments of OBJ_INFECT. + Mon Dec 17 16:52:20 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> * intern.h: add prototypes. diff --git a/sample/test.rb b/sample/test.rb index a6ab98ca63..7022b4de98 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -500,7 +500,7 @@ test_ok(begin test_ok($x.length == 3) test_ok($x.has_key?(1)) test_ok($x.has_value?(4)) -test_ok($x.indexes(2,3) == [4,6]) +test_ok($x.select(2,3) == [4,6]) test_ok($x == {1=>2, 2=>4, 3=>6}) $z = $y.keys.join(":") |