From 1a8ccefafc490875a90515907f05a565c4c8f7ba Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 30 Oct 2003 09:36:41 +0000 Subject: * 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 --- test/ruby/test_case.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/ruby/test_case.rb') 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 -- cgit v1.2.3