fails:IO#readpartial reads after ungetc without data in the buffer
fails:IO#readpartial discards the existing buffer content upon successful read
fails:IO#readpartial raises EOFError on EOF
fails:IO#readpartial discards the existing buffer content upon error
fails:IO#readpartial raises IOError if the stream is closed
