COMMIT Updated version to v1.5.16. http://github.com/rubyspec/mspec/commit/8537c769dbdd47a877b2dc1254acc823f7e0fd10 COMMIT Fixed fixture() helper to consider the fixtures dir. http://github.com/rubyspec/mspec/commit/b01debb8a64829acc104848d58ca10b2d9c4a5d0 COMMIT Added have_data() matcher. http://github.com/rubyspec/mspec/commit/c00d7a316cb0cf6ab0d993709de6cd2deeb8947f COMMIT Added fmode() helper to handle file access modes independent of encodings. http://github.com/rubyspec/mspec/commit/629f1dafa47eb7e999dd00abd0c2d6aad28d0b6b COMMIT Do not use 1.9.2 in version strings. http://github.com/rubyspec/rubyspec/commit/fd45f5edc9eb849488d43fd88749ec7087260193 COMMIT Standardize encoding magic comments. http://github.com/rubyspec/rubyspec/commit/e9cf07499744dd37ab1de7f17a8e803b4d1da35c COMMIT New specs for || and 'or' operator precedence http://github.com/rubyspec/rubyspec/commit/38bd0643c3e7bdba0aecf5eb91b0be9b56b5b5d7 COMMIT Update defined? spec for undefined methods http://github.com/rubyspec/rubyspec/commit/83e2ce6333ae445ea8db583d6288896d56d138e4 COMMIT Example: fixes for String#oct specs. http://github.com/rubyspec/rubyspec/commit/a0f0cb1b85e695171ffb5580b8b85ce2a9508a25 COMMIT String can contain a sign http://github.com/rubyspec/rubyspec/commit/b654789b365f9525ec392de581261925629a6438 COMMIT The sign bit of NaN may be zero. http://github.com/rubyspec/rubyspec/commit/097ef767c53f3a613694ca9cb222a7bd52fc104b COMMIT Removed readlines.txt and gets.txt IO fixtures. http://github.com/rubyspec/rubyspec/commit/1a01247189645c8c60131b8a815eac60d2aee873 COMMIT Removed use of IOSpecs.gets_fixtures. http://github.com/rubyspec/rubyspec/commit/37fc822a90f57edd57ecaa0ce5072311d1e51bf4 COMMIT Removed IOSpecs.closed_io, use IOSpecs.closed_file. http://github.com/rubyspec/rubyspec/commit/c2d2145545130212f0ebac339525f3d14266d141 COMMIT Replaced use of IOSpecs.lines_fixture with IOSpecs.io_fixture. http://github.com/rubyspec/rubyspec/commit/df48e112bb13760694238672e0848da2f24b81ba COMMIT More IO spec fixes. http://github.com/rubyspec/rubyspec/commit/a92bf0e754aca45234aaa2d4a7dc6ed49f23b1b1 COMMIT Fixes for IO#readline, #readlines. http://github.com/rubyspec/rubyspec/commit/b3f4a6bcaf7b3585f94138623f71487e63b1b14c COMMIT Example: rewrite IO#gets specs. http://github.com/rubyspec/rubyspec/commit/87893f9ad24412cddacc9a5cde04f808eedaa65b COMMIT Example: fixes for IO#chars, #each_codepoint, #codepoints specs. http://github.com/rubyspec/rubyspec/commit/b32f4c41b33d9bb5ced3aeee1c816b01df9a2442 COMMIT Require mspec version 1.5.16. http://github.com/rubyspec/rubyspec/commit/fc64dc1604c5c1ce9ee78adf8fc23825927c56e5 COMMIT Example: fixes for IO#putc specs. http://github.com/rubyspec/rubyspec/commit/4c5f97c1044dfb34dda861ba7db24e2ff7a073cf COMMIT Example: recommit 79cfbba0. http://github.com/rubyspec/rubyspec/commit/078f408562c19464aadffcbdf6bdce7799f83dd4 COMMIT Example: recommit d8743d74, 5ca24019, 9d38937e, 66eeef99, c5945496 with fixes. http://github.com/rubyspec/rubyspec/commit/f56d4f8a746291cd89b5c1dfe1e1d7cd01e6f6b5 COMMIT Enable features for 1.8 and 1.9 configurations. http://github.com/rubyspec/rubyspec/commit/aa89ef2f025c16742dae8b0340bddd496c8aa0f3 COMMIT Require mspec v1.5.15. http://github.com/rubyspec/rubyspec/commit/4aa23c6ddf5c4ee4b3e1d13a5fc75209f3848a82 --- 20100209T110544 +++ 20100210T103235 @@ -1,19 +1,19 @@ URL: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8 リポジトリのルート: http://svn.ruby-lang.org/repos/ruby リポジトリ UUID: b2dd03c8-39d4-4d8f-98ff-823fe69b080e -リビジョン: 26623 +リビジョン: 26629 ノード種別: ディレクトリ 準備中の処理: 特になし 最終変更者: knu @@ -7403,11 +7403,13 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/argf/bytes_spec.rb ARGF.bytes - yields each byte of all streams to the passed block +- returns self when passed a block - returns an Enumerator when passed no block /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/argf/chars_spec.rb ARGF.chars - yields each char of all streams to the passed block +- returns self when passed a block - returns an Enumerator when passed no block /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/argf/close_spec.rb @@ -7423,20 +7425,24 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/argf/each_byte_spec.rb ARGF.each_byte - yields each byte of all streams to the passed block +- returns self when passed a block - returns an Enumerator when passed no block /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/argf/each_char_spec.rb ARGF.each_char - yields each char of all streams to the passed block +- returns self when passed a block - returns an Enumerator when passed no block /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/argf/each_line_spec.rb ARGF.each_line - reads each line of files +- returns self when passed a block /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/argf/each_spec.rb ARGF.each - reads each line of files +- returns self when passed a block /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/argf/eof_spec.rb ARGF.eof @@ -8008,8 +8014,8 @@ - does not call flatten! on elements - raises an ArgumentError on recursive arrays - flattens any elements which responds to #to_ary, using the return value of said method -- raises a TypeError on frozen arrays when modification would take place -- does not raise on frozen arrays when no modification would take place +- raises a TypeError on frozen arrays when the array is modified +- does not raise on frozen arrays when the array would not be modified /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/array/frozen_spec.rb Array#frozen? @@ -8108,8 +8114,8 @@ - does nothing of no object is passed - tries to convert the passed position argument to an Integer using #to_int - raises an ArgumentError if no argument passed -- raises a TypeError on frozen arrays if modification takes place -- does not raise on frozen arrays if no modification takes place +- raises a TypeError on frozen arrays when the array is modified +- does not raise on frozen arrays when the array would not be modified /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/array/inspect_spec.rb Array#inspect @@ -9239,8 +9245,8 @@ - returns self - properly handles recursive arrays - returns nil if no changes are made to the array -- raises a TypeError on a frozen array if modification would take place -- does not raise an exception on a frozen array if no modification takes place +- raises a TypeError on a frozen array when the array is modified +- does not raise an exception on a frozen array when the array would not be modified /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/array/unshift_spec.rb Array#unshift @@ -11100,12 +11106,15 @@ - creates a new file when use File::EXCL mode - raises an Errorno::EEXIST if the file exists when create a new file with File::CREAT|File::EXCL - creates a new file when use File::WRONLY|File::APPEND mode +- raises an Errno::EINVAL error with File::APPEND +- raises an Errno::EINVAL error with File::RDONLY|File::APPEND - raises an Errno::EINVAL error with File::RDONLY|File::WRONLY - creates a new file when use File::WRONLY|File::TRUNC mode - coerces filename using to_str - raises a TypeError if the first parameter can't be coerced to a string - raises a TypeError if the first parameter is nil - raises an Errno::EBADF if the first parameter is an invalid file descriptor +- can't alter mode or permissions when opening a file - opens directories /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/file/open_spec.rb @@ -12397,6 +12406,7 @@ - does not call to_hash on hash subclasses - processes entries with same order as merge() - raises a TypeError if called on a non-empty, frozen instance +- does not raise an exception on a frozen instance that would not be modified - shouldn't raise spurious RuntimeErrors (FAILED - ) /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/hash/new_spec.rb @@ -12498,6 +12508,7 @@ - does not call to_hash on hash subclasses - processes entries with same order as merge() - raises a TypeError if called on a non-empty, frozen instance +- does not raise an exception on a frozen instance that would not be modified /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/hash/value_spec.rb Hash#value? @@ -12624,13 +12635,16 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/bytes_spec.rb IO#bytes - returns an enumerator of the next bytes from the stream -- ignores a block -- raises IOError on closed stream +- does not yield to a block +- raises an IOError on closed stream +- raises an IOError on an enumerator for a stream that has been closed /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/chars_spec.rb IO#chars - returns an enumerator of the next chars from the stream -- raises IOError on closed stream +- returns an enumerator for a closed stream +- raises an IOError when an enumerator created on a closed stream is accessed +- raises an IOError when the stream for the enumerator is closed /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/close_read_spec.rb IO#close_read @@ -12700,52 +12714,68 @@ IO#each_byte - raises IOError on closed stream - yields each byte -- works on empty streams - returns an Enumerator when passed no block +IO#each_byte +- returns self on an empty stream + /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/each_char_spec.rb IO#each_char - raises IOError on closed stream - yields each character -- works on empty streams - returns an Enumerator when passed no block +IO#each_char +- does not yield any characters on an empty stream + /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/each_codepoint_spec.rb /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/each_line_spec.rb -IO#each_line +IO#each_line with no separator - yields each line to the passed block - yields each line starting from the current position +- returns self - does not change $_ -- uses $/ as the default line separator - returns self - raises an IOError when self is not readable - returns an Enumerator when passed no block -IO#each_line when passed a separator +IO#each_line when passed a String containing one space as a separator - uses the passed argument as the line separator - does not change $_ -- returns self - tries to convert the passed separator to a String using #to_str + +IO#each_line when passed nil as a separator - yields self's content starting from the current position when the passed separator is nil -- yields each paragraph when passed an empty String as separator + +IO#each_line when passed an empty String as a separator +- yields each paragraph + +IO#each_line +- uses $/ as the default line separator /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/each_spec.rb -IO#each +IO#each with no separator - yields each line to the passed block - yields each line starting from the current position +- returns self - does not change $_ -- uses $/ as the default line separator - returns self - raises an IOError when self is not readable - returns an Enumerator when passed no block -IO#each when passed a separator +IO#each when passed a String containing one space as a separator - uses the passed argument as the line separator - does not change $_ -- returns self - tries to convert the passed separator to a String using #to_str + +IO#each when passed nil as a separator - yields self's content starting from the current position when the passed separator is nil -- yields each paragraph when passed an empty String as separator + +IO#each when passed an empty String as a separator +- yields each paragraph + +IO#each +- uses $/ as the default line separator /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/eof_spec.rb IO#eof? @@ -12793,19 +12823,32 @@ - cannot open an IO with incompatible flags /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/foreach_spec.rb -IO::foreach -- yields a sequence of Strings that were separated by $/ -- yields a sequence of Strings that were separated by r -- yields a single string with entire content when the separator is nil -- yields a sequence of paragraphs when the separator is an empty string -- updates $. with each yield -- can handle non-ASCII data as separator +IO.foreach - raises TypeError if the first parameter is nil -- raises Errno::ENOENT on invalid_file_name +- raises Errno::ENOENT if the file does not exist - converts first parameter to string and uses as file name -- converts second parameter to string and uses as separator, with a to_str calling for the IO - returns an Enumerator when called without a block +IO.foreach with no separator argument +- yields a sequence of Strings that were separated by $/ +- updates $. with each yield + +IO.foreach with nil as the separator argument +- yields a single string with entire content +- updates $. with each yield + +IO.foreach with an empty String as the separator argument +- yields a sequence of paragraphs when the separator is an empty string +- updates $. with each yield + +IO.foreach with an arbitrary String as the separator argument +- yields a sequence of Strings that were separated by r +- updates $. with each yield +- accepts non-ASCII data as separator + +IO.foreach with an object as the separator argument +- calls #to_str once to convert it to a String + /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/fsync_spec.rb IO#fsync - raises IOError on closed stream @@ -12815,34 +12858,60 @@ IO#getbyte - returns the next byte from the stream - returns nil when invoked at the end of the stream +- raises an IOError on closed stream + +IO#getbyte - returns nil on empty stream -- raises IOError on closed stream /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/getc_spec.rb IO#getc - returns the next byte from the stream - returns nil when invoked at the end of the stream -- returns nil on empty stream - raises IOError on closed stream +IO#getc +- returns nil on empty stream + /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/gets_spec.rb +IO#gets with ASCII separator +- returns the separator's number representation + IO#gets -- returns the next line of string that were separated by $/ -- returns tainted strings -- updates lineno with each invocation -- updates $. with each invocation - assigns the returned line to $_ - returns nil if called at the end of the stream -- returns the entire content if the separator is nil -- returns the next paragraph if the separator's length is 0 -- reads until the beginning of the next paragraph when the separator's length is 0 -- raises an IOError if the stream is not opened for reading - raises IOError on closed stream -- fails on cloned opened streams -- accepts a separator -IO#gets with ASCII separator -- returns the separator's number representation +IO#gets with no separator +- returns the next line of string that is separated by $/ +- returns tainted strings +- updates lineno with each invocation +- updates $. with each invocation + +IO#gets with nil separator +- returns the entire contents +- returns tainted strings +- updates lineno with each invocation +- updates $. with each invocation + +IO#gets with an empty String separator +- returns the next paragraph +- reads until the beginning of the next paragraph +- returns tainted strings +- updates lineno with each invocation +- updates $. with each invocation + +IO#gets with an arbitrary String separator +- reads up to and including the separator +- returns tainted strings +- updates lineno with each invocation +- updates $. with each invocation + +IO#gets +- raises an IOError if the stream is opened for append only +- raises an IOError if the stream is opened for writing only + +IO#gets +- raises an IOErro on the clone of a stream not open for reading /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/initialize_copy_spec.rb IO#initialize_copy @@ -12876,12 +12945,13 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/lineno_spec.rb IO#lineno -- raises IOError on closed stream +- raises an IOError on a closed stream - returns the current line number IO#lineno= -- raises IOError on closed stream -- invokes to_int on non-numeric arguments +- raises an IOError on a closed stream +- calls #to_int on a non-numeric argument +- truncates a Float argument - raises TypeError on nil argument - sets the current line number to the given value - does not change $. @@ -12890,6 +12960,7 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/lines_spec.rb IO#lines - returns an Enumerator +- returns a line when accessed - ignores a given block /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/new_spec.rb @@ -12923,7 +12994,7 @@ - cannot open an IO with incompatible flags IO.open -- raises IOError on closed stream +- raises an IOError on closed stream - with a block invokes close on opened IO object when exiting the block - with a block propagates non-StandardErrors produced by close - with a block swallows StandardErrors produced by close @@ -12938,8 +13009,10 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/pid_spec.rb IO#pid - returns nil for IO not associated with a process + +IO#pid - returns the ID of a process associated with stream -- raises IOError on closed stream +- raises an IOError on closed stream /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/pipe_spec.rb IO.pipe @@ -12981,9 +13054,9 @@ IO#putc - raises IOError on closed stream - writes the first byte of a String -- writes the first byte of an object's string representation -- writes Numerics that fit in a C char -- write the first byte of Numerics that don't fit in a C char +- calls #to_int on a non-Integer and writes the first byte of the value +- writes a Numeric that fits in a byte +- write the first byte of a Numeric that does not fit in a byte /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/puts_spec.rb IO#puts @@ -13055,51 +13128,71 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/readchar_spec.rb IO#readchar - returns the next byte from the stream -- raises EOFError when invoked at the end of the stream -- raises EOFError when reaches the end of the stream -- raises EOFError on empty stream +- raises an EOFError when invoked at the end of the stream - raises IOError on closed stream +IO#readchar +- raises EOFError on empty stream + /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/readline_spec.rb IO#readline - returns the next line on the stream - goes back to first position after a rewind -- is modified by the cursor position +- returns characters after the position set by #seek - raises EOFError on end of stream - raises IOError on closed stream - assigns the returned line to $_ /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/readlines_spec.rb +IO#readlines +- raises an IOError if the stream is closed + IO#readlines when passed no arguments - returns an Array containing lines based on $/ + +IO#readlines when passed no arguments - updates self's position - updates self's lineno based on the number of lines read - does not change $_ - returns an empty Array when self is at the end -IO#readlines when passed [separator] -- returns an Array containing lines based on the passed separator +IO#readlines when passed nil +- returns the remaining content as one line starting at the current position + +IO#readlines when passed an empty String +- returns an Array containing all paragraphs + +IO#readlines when passed a separator +- returns an Array containing lines based on the separator - returns an empty Array when self is at the end - updates self's lineno based on the number of lines read - updates self's position based on the number of characters read - does not change $_ -- returns an Array containing all paragraphs when the passed separator is an empty String -- returns the remaining content as one line starting at the current position when passed nil - tries to convert the passed separator to a String using #to_str -IO#readlines when in write-only mode -- raises an IOError +IO#readlines +- raises an IOError if the stream is opened for append only +- raises an IOError if the stream is opened for write only -IO.readlines when passed [file_name] +IO.readlines when not passed a separator - returns an Array containing lines of file_name based on $/ + +IO.readlines when not passed a separator - raises an Errno::ENOENT error when the passed file_name does not exist - does not change $_ - tries to convert the passed file_name to a String using #to_str -IO#readlines when passed [file_name, separator] +IO.readlines when passed nil as a separator +- returns the contents as a single String + +IO.readlines when passed an empty String as a separator +- returns an Array containing all paragraphs + +IO.readlines when passed an arbitrary string separator - returns an Array containing lines of file_name based on the passed separator - does not change $_ -- returns an Array containing all paragraphs when the passed separator is an empty String + +IO.readlines when passed an object as separator - tries to convert the passed separator to a String using #to_str /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/readpartial_spec.rb @@ -13174,11 +13267,11 @@ IO#sync= - sets the sync mode to true or false - accepts non-boolean arguments -- raises IOError on closed stream +- raises an IOError on closed stream IO#sync - returns the current sync mode -- raises IOError on closed stream +- raises an IOError on closed stream /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/sysopen_spec.rb IO.sysopen @@ -13200,16 +13293,15 @@ - raises IOError on closed stream /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/sysseek_spec.rb -IO#sysseek on a file +IO#sysseek - sets the offset - converts arguments to Integers - does not accept Bignums that don't fit in a C long - raises IOError on closed stream -IO#sysseek on a file +IO#sysseek - moves the read position relative to the current position with SEEK_CUR - raises an error when called after buffered reads -- warns if called immediately after a buffered IO#write - moves the read position relative to the start with SEEK_SET - moves the read position relative to the end with SEEK_END @@ -16920,6 +17012,7 @@ - modifies self in place and returns self - returns nil if no modifications were made - raises a TypeError when self is frozen +- does not raise an exception when the string would not be modified /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/string/chop_spec.rb String#chop @@ -16934,6 +17027,7 @@ - returns self if modifications were made - returns nil when called on an empty string - raises a TypeError when self is frozen +- does not raise an exception on a frozen instance that would not be modified /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/string/chr_spec.rb /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/string/clear_spec.rb @@ -17314,11 +17408,13 @@ - converts start_offset to an integer via to_int String#index with Regexp +- behaves the same as String#index(string) for escaped string regexps - returns the index of the first match of regexp - sets $~ to MatchData of match and nil when there's none - starts the search at the given offset - starts the search at offset + self.length if offset is negative - returns nil if the substring isn't found +- returns nil if the Regexp matches the empty string and the offset is out of range - supports \G which matches at the given start offset - converts start_offset to an integer via to_int @@ -17400,7 +17496,8 @@ String#lstrip! - modifies self in place and returns self - returns nil if no modifications were made -- raises a TypeError if self is frozen +- raises a TypeError on a frozen instance that is modified +- does not raise an exception on a frozen instance that would not be modified /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/string/match_spec.rb String#=~ @@ -17555,10 +17652,26 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/string/oct_spec.rb String#oct -- treats leading characters of self as a string of oct digits +- treats numeric digits as base-8 digits by default +- accepts numbers formatted as binary +- accepts numbers formatted as hexadecimal +- accepts numbers formatted as decimal +- accepts a single underscore separating digits - does not accept a sequence of underscores as part of a number -- takes an optional sign -- returns 0 on error +- ignores characters that are incorrect for the base-8 digits +- returns 0 if no characters can be interpreted as a base-8 number + +String#oct with a leading minus sign +- treats numeric digits as base-8 digits by default +- accepts numbers formatted as binary +- accepts numbers formatted as hexadecimal +- accepts numbers formatted as decimal + +String#oct with a leading plus sign +- treats numeric digits as base-8 digits by default +- accepts numbers formatted as binary +- accepts numbers formatted as hexadecimal +- accepts numbers formatted as decimal /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/string/ord_spec.rb String#ord @@ -17591,7 +17704,8 @@ - replaces the taint status of self with that of other - tries to convert other to string using to_str - raises a TypeError if other can't be converted to string -- raises a TypeError if self is frozen +- raises a TypeError on a frozen instance that is modified +- does not raise an exception on a frozen instance that would not be modified /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/string/reverse_spec.rb String#reverse @@ -17600,7 +17714,8 @@ String#reverse! - reverses self in place and always returns self -- raises a TypeError if self is frozen +- raises a TypeError on a frozen instance that is modified +- does not raise an exception on a frozen instance that would not be modified /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/string/rindex_spec.rb String#rindex with object @@ -17667,7 +17782,8 @@ String#rstrip! - modifies self in place and returns self - returns nil if no modifications were made -- raises a TypeError if self is frozen +- raises a TypeError on a frozen instance that is modified +- does not raise an exception on a frozen instance that would not be modified /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/string/scan_spec.rb String#scan @@ -17780,7 +17896,8 @@ - returns subclass instances - calls to_int on range arguments - works with Range subclasses -- raises a TypeError if self is frozen +- raises a TypeError on a frozen instance that would be modifed +- does not raise an exception on a frozen instance that would not be modified String#slice! with Regexp - deletes and returns the first match from self @@ -17789,7 +17906,8 @@ - doesn't taint self when regexp is tainted - returns subclass instances - sets $~ to MatchData when there is a match and nil when there's none -- raises a TypeError if self is frozen +- raises a TypeError on a frozen instance that is modified +- does not raise an exception on a frozen instance that would not be modified String#slice! with Regexp, index - deletes and returns the capture for idx from self @@ -17883,7 +18001,8 @@ String#strip! - modifies self in place and returns self - returns nil if no modifications where made -- raises a TypeError if self is frozen +- raises a TypeError on a frozen instance that is modified +- does not raise an exception on a frozen instance that would not be modified /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/string/sub_spec.rb String#sub with pattern, replacement @@ -19384,6 +19503,7 @@ - returns 'true' when defined?(true) is sent - returns 'false' when defined?(false) is sent - returns nil when defined?(no_such_local) is sent +- returns nil for defined?(super) when a superclass undef's the method - returns 'expression' when defined?(:File) is sent - returns 'constant' when defined?(LanguageDefinedSpecs::SomeConst) is sent - returns nil when defined?(LanguageDefinedSpecs::MissingConst) is sent @@ -19732,18 +19852,24 @@ - character with control character to numeric shortcut /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/language/or_spec.rb -The || statement +The || operator - evaluates to true if any of its operands are true - evaluated to false if all of its operands are false - is evaluated before assignment operators - has a lower precedence than the && operator - treats empty expressions as nil +- has a higher precedence than 'break' in 'break true || false' +- has a higher precedence than 'next' in 'next true || false' +- has a higher precedence than 'return' in 'return true || false' -The or statement +The or operator - evaluates to true if any of its operands are true - is evaluated after variables are assigned - has a lower precedence than the || operator - treats empty expressions as nil +- has a lower precedence than 'break' in 'break true or false' +- has a lower precedence than 'next' in 'next true or false' +- has a lower precedence than 'return' in 'return true or false' /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/language/order_spec.rb A method call @@ -30692,7 +30818,7 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:179:in `protect' -/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/hash/shared/update.rb:40:in `all?' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/hash/shared/update.rb:39:in `all?' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:179:in `each' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:179:in `all?' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ -33458,7 +33584,7 @@ ) Matrix.[] tries to calls :to_ary on arguments FAILED -Expected Matrix[# @null=nil, @name="ary">, [3, 4]] +Expected Matrix[# @name="ary", @null=nil>, [3, 4]] to equal Matrix[[1, 2], [3, 4]] /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' @@ -35779,7 +35905,7 @@ Finished in seconds -2932 files, 12291 examples, 37738 expectations, 94 failures, 92 errors +2932 files, 12351 examples, 38189 expectations, 94 failures, 92 errors exit 1 failed(rubyspec) == end #