* transcode_data.h (rb_transcoder): add resetstate_func field for
[ruby-svn.git] / test / ruby / test_pipe.rb
blob34f231ad8c9e0e46035ed35ff53f15ae78fb3255
1 require 'test/unit'
2 require_relative 'ut_eof'
4 class TestPipe < Test::Unit::TestCase
5   include TestEOF
6   def open_file(content)
7     r, w = IO.pipe
8     w << content
9     w.close
10     begin
11       yield r
12     ensure
13       r.close
14     end
15   end
16 end