rubinius/rubinius — pull request #1320 by guilleiguaran (2011-10-21 09:04:18+00:00)
Title: [1.9] StringIO

The next specs are passing now:

- StringIO#readpartial raises IOError on closed stream
- StringIO#readpartial reads at most the specified number of bytes
- StringIO#readpartial reads after ungetc with data in the buffer
- StringIO#readpartial reads after ungetc without data in the buffer
- StringIO#readpartial discards the existing buffer content upon successful read
- StringIO#readpartial raises EOFError on EOF
- StringIO#readpartial raises IOError if the stream is closed
- StringIO#readpartial raises ArgumentError if the negative argument is provided
- StringIO#readpartial immediately returns an empty string if the length argument is 0
- StringIO#ungetc when passed [char] tries to convert the passed argument to an String using #to_str
- StringIO#ungetc when passed [char] writes the passed char before the current position
- StringIO#ungetc when passed [char] returns nil
- StringIO#ungetc when passed [char] decreases the current position by one
- StringIO#ungetc when passed [char] pads with \000 when the current position is after the end
- StringIO#path is not defined