From 3285c929930205620cc6ab533108a0600c19bffa Mon Sep 17 00:00:00 2001 From: ocean Date: Mon, 4 Jul 2005 10:31:44 +0000 Subject: [PATCH] * lib/set.rb: test change to follow revision 1.28. (duck typing?) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/set.rb | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0193a0c6a2..4db092e957 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 4 19:29:32 2005 Hirokazu Yamamoto + + * lib/set.rb: test change to follow revision 1.28. (duck typing?) + Mon Jul 4 11:23:50 2005 NAKAMURA Usaku * test/{dbm,gdbm,sdbm}/test_{dbm,gdbm,sdbm}.rb: skip some tests diff --git a/lib/set.rb b/lib/set.rb index 9e3dac06ed..98c566f9c0 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -642,10 +642,10 @@ class TC_Set < Test::Unit::TestCase Set.new('a'..'c') Set.new('XYZ') } - assert_raises(ArgumentError) { + assert_raises(NoMethodError) { Set.new(false) } - assert_raises(ArgumentError) { + assert_raises(NoMethodError) { Set.new(1) } assert_raises(ArgumentError) {