mruby-io/test: test IO#ungetc

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-12-30 13:55:52 +09:00
parent 26f458baab
commit a68b1200c2
+8
View File
@@ -327,6 +327,14 @@ assert('IO#_read_buf') do
io.close
end
assert('IO#ungetc') do
io = IO.new(IO.sysopen($mrbtest_io_rfname))
assert_equal 'm', io.getc
assert_nothing_raised{io.ungetc("M")}
assert_equal 'M', io.getc
io.close
end
assert('IO#isatty') do
skip "isatty is not supported on this platform" if MRubyIOTestUtil.win?
begin