diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-20 09:01:04 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-20 09:01:04 +0000 |
| commit | 1503012e4fc12a630b6f945cbf36ce1c95c62897 (patch) | |
| tree | 5d9589b8197a7a1459ffdb6ee889b74a241a0f44 /test/ruby | |
| parent | ca5c47cb1d4ac4a9ca19d187eeaeb43a5a6a435d (diff) | |
* object.c, NEWS, test/ruby/test_symbol.rb: Revert Symbol#to_proc
since it does not pass the tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_symbol.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index ac73dc9137..2ccfe64c92 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -74,11 +74,4 @@ class TestSymbol < Test::Unit::TestCase assert_inspect_evaled(':$0') assert_inspect_evaled(':$1') end - - def test_to_proc - assert_equal %w(1 2 3), (1..3).map(&:to_s) - assert_nothing_raised(ArgumentError) { :object_id.to_proc.call([]) } - assert_nothing_raised(ArgumentError) { :object_id.to_proc.call([1]) } - assert_nothing_raised(ArgumentError) { :object_id.to_proc.call([1,2]) } - end end |
