summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-30 09:36:41 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-30 09:36:41 +0000
commit1a8ccefafc490875a90515907f05a565c4c8f7ba (patch)
tree68dd6036eca5931bd9c70030d9df7bfbe1a1c6cd /test/ruby
parentcf22db8d6910a428b2bb51b3c78c34b86d83bf74 (diff)
* io.c (READ_DATA_BUFFERED): new macro to detect whether stdio
buffer filled. * io.c (rb_io_fptr_cleanup): move path deallocation to rb_io_fptr_finalize (finalizer called by GC). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_case.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_case.rb b/test/ruby/test_case.rb
index 5046193662..2407356965 100644
--- a/test/ruby/test_case.rb
+++ b/test/ruby/test_case.rb
@@ -38,5 +38,14 @@ class TestCase < Test::Unit::TestCase
else
assert(false)
end
+
+ case
+ when true
+ assert(true)
+ when false, nil
+ assert(false)
+ else
+ assert(false)
+ end
end
end