diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-19 05:20:21 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-19 05:20:21 +0000 |
commit | 39fcd1cdf295d310c1bfd220324fef5b2f725230 (patch) | |
tree | 55cf3c7f4e7a02a3e8a4f44b5041463132043376 /test/ruby/test_struct.rb | |
parent | 888c93593003282257849e7af84b73e1ac0f0d8b (diff) | |
download | ruby-39fcd1cdf295d310c1bfd220324fef5b2f725230.tar.gz |
* bootstraptest/test_knownbug.rb: move solved tests.
* bootstraptest/test_eval.rb, test_literal.rb, test_syntax.rb,
test_thread.rb: ditto.
* test/ruby/test_m17n.rb, test_proc.rb, test_sprintf.rb,
test_string.rb, test/ruby/test_struct.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_struct.rb')
-rw-r--r-- | test/ruby/test_struct.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_struct.rb b/test/ruby/test_struct.rb index cbb0c1405e..6c0e1f4fb2 100644 --- a/test/ruby/test_struct.rb +++ b/test/ruby/test_struct.rb @@ -206,4 +206,10 @@ class TestStruct < Test::Unit::TestCase o = klass.new(1) assert_equal(1, o.size) end + + def test_error + assert_raise(TypeError){ + Struct.new(0) + } + end end |