COMMIT 1.8.7: Fixed enumerator_class http://github.com/rubyspec/mspec/commit/2dce8bc966a6100b4de99ddc0b1e4836753ee374 COMMIT 1.9: Hash#default_proc=, #key (new) http://github.com/rubyspec/rubyspec/commit/6bfa11f69e4ff07e918d21e4323ed13a10e02dc8 COMMIT 1.8.7: Enumerable#take_while (new) http://github.com/rubyspec/rubyspec/commit/7c3118a44e99d67d2f3744b04e30d989ebf49c00 COMMIT 1.8.7: Enumerable#minmax, minmax_by (new) http://github.com/rubyspec/rubyspec/commit/1db6c93f3f5c6e0635e63338faae4e97504cbc50 COMMIT Add specs to confirm that Hash#== doesn't call to_hash on the passed argument http://github.com/rubyspec/rubyspec/commit/838e10c287d6cec56054817213ecd83c487d4190 --- 20090512T082214 +++ 20090513T082306 @@ -1,8148 +1,8149 @@ - calls #to_str to convert the separator to a String - raises a TypeError if the separator cannot be coerced to a String by calling #to_str +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/array/key_spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/array/last_spec.rb Array#last - returns the last element @@ -9979,6 +9980,21 @@ - return the minimun when using a block rule - returns the minimum for enumerables that contain nils +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/minmax_by_spec.rb +Enumerable#minmax_by +- returns an enumerator if no block +- returns nil if #each yields no objects +- returns the object for whom the value returned by block is the largest +- returns the object that appears first in #each in case of a tie +- uses min/max.<=>(current) to determine order +- is able to return the maximum for enums that contain nils + +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/minmax_spec.rb +Enumerable#minmax +- min should return the minimum element +- return nil when error +- return the minimun when using a block rule + /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/partition_spec.rb Enumerable#partition - returns two arrays, the first containing elements for which the block is true, the second containing the rest @@ -10033,6 +10049,15 @@ - tries to convert the passed argument to an Integer using #to_int - raises a TypeError if the passed argument is not numeric +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/take_while_spec.rb +Enumerable#take_while +- returns an Enumerator if no block given +- returns no/all elements for {true/false} block +- accepts returns other than true/false +- passes elements to the block until the first false +- will only go through what's needed +- doesn't return self when it could + /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/to_a_spec.rb Enumerable#to_a - returns an array containing the items in enum. @@ -11779,6 +11804,7 @@ - first compares keys via hash - does not compare keys with different hash codes via eql? - computes equality for recursive hashes +- doesn't call to_hash on objects - compares values when keys match - compares keys with eql? semantics - returns true if other Hash has the same number of keys and each key-value pair matches (FAILED - ) @@ -11793,6 +11819,7 @@ - first compares keys via hash - does not compare keys with different hash codes via eql? - computes equality for recursive hashes +- doesn't call to_hash on objects - compares values when keys match - compares keys with eql? semantics - returns true if other Hash has the same number of keys and each key-value pair matches @@ -16887,92 +16914,92 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/symbol/inspect_spec.rb Symbol#inspect +- returns self as a symbol literal for :"." - returns self as a symbol literal for :[] - returns self as a symbol literal for :$= - returns self as a symbol literal for :$$ - returns self as a symbol literal for :/ - returns self as a symbol literal for :$. -- returns self as a symbol literal for :":" +- returns self as a symbol literal for :" " - returns self as a symbol literal for :".." - returns self as a symbol literal for :$~ - returns self as a symbol literal for :"foo bar" -- returns self as a symbol literal for :$ruby +- returns self as a symbol literal for :"\"" - returns self as a symbol literal for :=~ - returns self as a symbol literal for :$< +- returns self as a symbol literal for :"@ruby!" - returns self as a symbol literal for :> -- returns self as a symbol literal for :"\"\"" +- returns self as a symbol literal for :"=>" - returns self as a symbol literal for :< -- returns self as a symbol literal for :"@ruby?" -- returns self as a symbol literal for :@@ruby -- returns self as a symbol literal for :"?" -- returns self as a symbol literal for :"=" +- returns self as a symbol literal for :fred? +- returns self as a symbol literal for :$1234 - returns self as a symbol literal for :$\ -- returns self as a symbol literal for :fred! - returns self as a symbol literal for :>= +- returns self as a symbol literal for :@ruby - returns self as a symbol literal for :$+ - returns self as a symbol literal for :` -- returns self as a symbol literal for :"$" -- returns self as a symbol literal for :"." +- returns self as a symbol literal for :"," +- returns self as a symbol literal for :" foo" - returns self as a symbol literal for :^ - returns self as a symbol literal for :% +- returns self as a symbol literal for :"$-ww" - returns self as a symbol literal for :=== -- returns self as a symbol literal for :" " +- returns self as a symbol literal for :"|||" - returns self as a symbol literal for :$: - returns self as a symbol literal for :$* - returns self as a symbol literal for :<=> -- returns self as a symbol literal for :"\"" +- returns self as a symbol literal for :"$ruby?" +- returns self as a symbol literal for :"@" - returns self as a symbol literal for :$> -- returns self as a symbol literal for :"@ruby!" - returns self as a symbol literal for :"!" - returns self as a symbol literal for :-@ -- returns self as a symbol literal for :"=>" +- returns self as a symbol literal for :"'" - returns self as a symbol literal for :>> - returns self as a symbol literal for :~ -- returns self as a symbol literal for :fred? - returns self as a symbol literal for :$' -- returns self as a symbol literal for :$1234 +- returns self as a symbol literal for :"foo " - returns self as a symbol literal for :[]= - returns self as a symbol literal for :| -- returns self as a symbol literal for :"," -- returns self as a symbol literal for :" foo" +- returns self as a symbol literal for :"@@ruby?" +- returns self as a symbol literal for :"||" - returns self as a symbol literal for :"..." - returns self as a symbol literal for :$; -- returns self as a symbol literal for :"$-ww" -- returns self as a symbol literal for :"|||" -- returns self as a symbol literal for :"$ruby?" +- returns self as a symbol literal for :"$ruby!" +- returns self as a symbol literal for :";" - returns self as a symbol literal for :$! - returns self as a symbol literal for :"!~" -- returns self as a symbol literal for :"@" - returns self as a symbol literal for :* +- returns self as a symbol literal for :"&&" - returns self as a symbol literal for :$/ - returns self as a symbol literal for :$` +- returns self as a symbol literal for :"*foo" - returns self as a symbol literal for :"9" - returns self as a symbol literal for :<= -- returns self as a symbol literal for :"'" +- returns self as a symbol literal for :"@@ruby!" - returns self as a symbol literal for :$" -- returns self as a symbol literal for :"foo " -- returns self as a symbol literal for :"@@ruby?" - returns self as a symbol literal for :& - returns self as a symbol literal for :"!=" -- returns self as a symbol literal for :"||" +- returns self as a symbol literal for :":" - returns self as a symbol literal for :$@ - returns self as a symbol literal for :== - returns self as a symbol literal for :$? - returns self as a symbol literal for :$-w - returns self as a symbol literal for :$_ -- returns self as a symbol literal for :"$ruby!" -- returns self as a symbol literal for :";" - returns self as a symbol literal for :$& +- returns self as a symbol literal for :$ruby - returns self as a symbol literal for :$, - returns self as a symbol literal for :** -- returns self as a symbol literal for :@ruby +- returns self as a symbol literal for :"\"\"" - returns self as a symbol literal for :"++" - returns self as a symbol literal for :"::" -- returns self as a symbol literal for :+@ -- returns self as a symbol literal for :"&&" -- returns self as a symbol literal for :"*foo" - returns self as a symbol literal for :fred -- returns self as a symbol literal for :"@@ruby!" +- returns self as a symbol literal for :+@ +- returns self as a symbol literal for :"@ruby?" +- returns self as a symbol literal for :@@ruby +- returns self as a symbol literal for :"?" +- returns self as a symbol literal for :"=" +- returns self as a symbol literal for :fred! +- returns self as a symbol literal for :"$" - returns self as a symbol literal for :<< /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/symbol/to_i_spec.rb @@ -26726,7 +26753,7 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/matchers/base.rb:8:in `==' -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/hash/shared/eql.rb:130 +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/hash/shared/eql.rb:136 /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:67:in `instance_eval' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:67:in `protect' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `protect' @@ -27692,7 +27719,7 @@ Finished in seconds -2560 files, 10640 examples, 35544 expectations, 22 failures, 18 errors +2564 files, 10657 examples, 35572 expectations, 22 failures, 18 errors exit 1 failed(rubyspec) == end #