COMMIT StringIO#read, #sysread specs when passed nil at EOF. http://github.com/rubyspec/rubyspec/commit/e4a5124b63a93fb6181c5a87fa678a059d6c8d7a --- 20090427T084525 +++ 20090428T090025 @@ -1,24939 +1,24945 @@ StringIO#read when passed no arguments - reads the whole content starting from the current position - correctly updates the current position +- returns an empty string if at EOF + +StringIO#read when passed nil +- returns the remaining content from the current position +- updates the current position +- returns an empty string if at EOF StringIO#read when self is not readable - raises an IOError @@ -25110,10 +25116,16 @@ StringIO#sysread when passed no arguments - reads the whole content starting from the current position - correctly updates the current position +- returns an empty String if at EOF StringIO#sysread when self is not readable - raises an IOError +StringIO#sysread when passed nil +- returns the remaining content from the current position +- updates the current position +- returns an empty String if at EOF + StringIO#sysread when passed [length] - raises an EOFError when self's position is at the end - returns an empty String when length is 0 @@ -26077,8 +26089,7 @@ ) The throw keyword raises a name error if outside of scope of a matching catch FAILED -Expected NameError -but got ThreadError (uncaught throw `test' in thread 0xXXXXXXX) +Expected NameError but got ThreadError (uncaught throw `test' in thread 0xXXXXXX) /home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/throw_spec.rb:57 /home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/throw_spec.rb:32:in `all?' /home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/throw_spec.rb:3 @@ -26165,8 +26176,7 @@ ) Kernel.throw raises NameError if there is no catch block for the symbol FAILED -Expected NameError -but got ThreadError (uncaught throw `blah' in thread 0xXXXXXXX) +Expected NameError but got ThreadError (uncaught throw `blah' in thread 0xXXXXXX) /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/throw_spec.rb:45 /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/throw_spec.rb:2:in `all?' /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/kernel/throw_spec.rb:4 @@ -26408,7 +26418,7 @@ Finished in seconds -2543 files, 10485 examples, 35265 expectations, 19 failures, 18 errors +2543 files, 10493 examples, 35279 expectations, 19 failures, 18 errors exit 1 failed(rubyspec) == end #