COMMIT Added ruby 1.9 new feature that Time is stored as rational instead of float to the Time#+ spec http://github.com/rubyspec/rubyspec/commit/f04becde8f130f7def953153d57eb7e6280f8591 COMMIT Fixed Float#to_s spec for 1.9 compatibility. * It may depend on platform. Could you try and fix this spec...? http://github.com/rubyspec/rubyspec/commit/69e19fb2f52fb34ccdefb02339443d5736cce761 COMMIT Removed a ruby bug because of the change of the assumption of the bug. http://github.com/rubyspec/rubyspec/commit/57df46d1fb4009ac7d19086f1c244e1f66b24f76 COMMIT 1.8.7: Enumerable#reduce http://github.com/rubyspec/rubyspec/commit/180485febfd6e9a770ca1848d679aaf71c9dd009 COMMIT 1.8.7: Enumerable#group_by (new) http://github.com/rubyspec/rubyspec/commit/bbdf805fdcb41c97588d02daa16f881087e7be6b COMMIT 1.8.7: Enumerable#first, #take (new) http://github.com/rubyspec/rubyspec/commit/96e5cd50c8c80daaed1a0e7eb14b381f6eeffe91 COMMIT 1.8.7: find_by_index => find_index http://github.com/rubyspec/rubyspec/commit/2c64909b78ad74bfd8fe9e0408e0a874444ed992 COMMIT 1.9: Enumerable#each_with_object (new) http://github.com/rubyspec/rubyspec/commit/084641960c3beaeca645aa5c24553954f0b9c19c COMMIT Added Array#initialize specs http://github.com/rubyspec/rubyspec/commit/4d843caf65da86169ba3e4d5bba070eea3e3e159 COMMIT Added feature [ruby-dev:38371] http://github.com/rubyspec/rubyspec/commit/c2d8b424a936f0b11f600a2c3b092ccdbba710f7 COMMIT Refactored "== true" to "be_true" etc. http://github.com/rubyspec/rubyspec/commit/4a5bdc2a371dd2186ca6c5138798eb0629be85c7 --- 20090511T084011 +++ 20090512T082214 @@ -1,9873 +1,9874 @@ - binds splat arguments properly - returns an enumerator if no block +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/each_with_object_spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/entries_spec.rb Enumerable#entries - returns an array containing the items in enum. @@ -9889,12 +9890,33 @@ - returns an enumerator when no block given - passes the ifnone proc to the enumerator +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/first_spec.rb +Enumerable#first +- returns the first element +- returns nil if self is empty + +Enumerable#first when passed an argument +- returns the first count elements if given a count +- returns an empty array when passed count on an empty array +- returns an empty array when passed count == 0 +- returns an array containing the first element when passed count == 1 +- raises an ArgumentError when count is negative +- returns the entire array when count > length +- 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/grep_spec.rb Enumerable#grep - grep without a block should return an array of all elements === pattern - grep with a block should return an array of elements === pattern passed through block - grep the enumerable (rubycon legacy) +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/group_by_spec.rb +Enumerable#group_by +- returns a hash with values grouped according to the block +- returns an empty hash for empty enumerables +- returns an Enumerator if called without a block + /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/include_spec.rb Enumerable#include? - returns true if any element == argument @@ -9902,14 +9924,15 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/inject_spec.rb Enumerable#inject -- inject with argument takes a block with an accumulator (with argument as initial value) and the current element. Value of block becomes new accumulator +- with argument takes a block with an accumulator (with argument as initial value) and the current element. Value of block becomes new accumulator - produces an array of the accumulator and the argument when given a block with a *arg - can take two argument +- ignores the block if two arguments - can take a symbol argument -- inject without argument takes a block with an accumulator (with first element as initial value) and the current element. Value of block becomes new accumulator -- inject with inject arguments(legacy rubycon) -- inject without inject arguments(legacy rubycon) -- return nil when fails(legacy rubycon) +- without argument takes a block with an accumulator (with first element as initial value) and the current element. Value of block becomes new accumulator +- with inject arguments(legacy rubycon) +- without inject arguments(legacy rubycon) +- returns nil when fails(legacy rubycon) /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/map_spec.rb Enumerable#map @@ -9961,6 +9984,18 @@ - returns two arrays, the first containing elements for which the block is true, the second containing the rest - returns an Enumerator if called without a block +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/reduce_spec.rb +Enumerable#reduce +- with argument takes a block with an accumulator (with argument as initial value) and the current element. Value of block becomes new accumulator +- produces an array of the accumulator and the argument when given a block with a *arg +- can take two argument +- ignores the block if two arguments +- can take a symbol argument +- without argument takes a block with an accumulator (with first element as initial value) and the current element. Value of block becomes new accumulator +- with inject arguments(legacy rubycon) +- without inject arguments(legacy rubycon) +- returns nil when fails(legacy rubycon) + /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/reject_spec.rb Enumerable#reject - returns an array of the elements for which block is false @@ -9984,6 +10019,20 @@ - sorts enumerables that contain nils - compare values returned by block with 0 +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/enumerable/take_spec.rb +Enumerable#take +- requires an argument + +Enumerable#take when passed an argument +- returns the first count elements if given a count +- returns an empty array when passed count on an empty array +- returns an empty array when passed count == 0 +- returns an array containing the first element when passed count == 1 +- raises an ArgumentError when count is negative +- returns the entire array when count > length +- 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/to_a_spec.rb Enumerable#to_a - returns an array containing the items in enum. @@ -11585,6 +11634,7 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/float/to_s_spec.rb Float#to_s - returns a string representation of self, possibly Nan, -Infinity, +Infinity +- returns a string representation of self - returns the correct values for -0.0 /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/float/truncate_spec.rb @@ -12380,7 +12430,6 @@ - reads and writes to a read/write pipe - writes to a write-only pipe - allows the io to be closed inside the block -heh /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/io/pos_spec.rb IO#pos @@ -15341,6 +15390,12 @@ - returns true if other is an element of self /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/range/initialize_spec.rb +Array#initialize +- is private +- raises an ArgumentError if passed without or with only an argument +- raises a NameError if passed with two or three arguments +- raises an ArgumentError if passed with four or more arguments + /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/range/inspect_spec.rb Range#inspect - provides a printable form, using #inspect to convert the start and end objects @@ -16832,92 +16887,92 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/symbol/inspect_spec.rb Symbol#inspect -- 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 :".." -- returns self as a symbol literal for :"$ruby!" - returns self as a symbol literal for :$~ - returns self as a symbol literal for :"foo bar" -- 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 :"*foo" +- 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 :"@@ruby!" +- returns self as a symbol literal for :fred! - 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 :$: -- 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 :@@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 :fred -- returns self as a symbol literal for :"@ruby?" +- returns self as a symbol literal for :fred? - 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 :[]= - 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 :$; -- 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 :$! - 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 :"9" -- 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 :$" -- returns self as a symbol literal for :$1234 -- 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 :" 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 :$? - returns self as a symbol literal for :$-w - 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 :";" - 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 :"::" - 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 :<< /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/symbol/to_i_spec.rb @@ -17354,6 +17409,8 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/core/time/plus_spec.rb Time#+ - increments the time by the specified amount +- is a commutative operator +- increments the time by the specified amount as float numbers - accepts arguments that can be coerced into Float - raises TypeError on argument that can't be coerced into Float - raises TypeError on Time argument @@ -24184,8 +24241,6 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/sortedset/flatten_merge_spec.rb SortedSet#flatten_merge - is protected -- flattens the passed SortedSet and merges it into self (ERROR - ) -- raises an ArgumentError when trying to flatten a recursive SortedSet (ERROR - ) /home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/sortedset/flatten_spec.rb SortedSet#flatten @@ -27522,74 +27577,6 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/bin/mspec-run:8 ) -SortedSet#flatten_merge flattens the passed SortedSet and merges it into self ERROR -ArgumentError: value must respond to <=> -(eval):18:in `add' -/home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/set.rb:267:in `merge' -/home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/set.rb:267:in `each' -/home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/set.rb:267:in `merge' -(eval):40:in `merge' -/home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/set.rb:76:in `initialize' -(eval):4:in `initialize' -/home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/set.rb:478:in `new' -/home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/set.rb:478:in `[]' -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/sortedset/flatten_merge_spec.rb:12 -/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' -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/sortedset/flatten_merge_spec.rb:2:in `all?' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `each' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `all?' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `protect' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:163:in `process' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:155:in `each' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:155:in `process' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:36:in `describe' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/object.rb:11:in `describe' -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/sortedset/flatten_merge_spec.rb:4 -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:55:in `load' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:55:in `files' -/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/mspec.rb:55:in `files' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:49:in `each' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:49:in `files' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:41:in `process' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/commands/mspec-run.rb:87:in `run' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/utils/script.rb:217:in `main' -/home/chkbuild/tmp/build/ruby-1.8//mspec/bin/mspec-run:8 - - ) -SortedSet#flatten_merge raises an ArgumentError when trying to flatten a recursive SortedSet ERROR -ArgumentError: value must respond to <=> -(eval):18:in `<<' -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/sortedset/flatten_merge_spec.rb:20 -/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' -(eval):18:in `all?' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `each' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `all?' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:135:in `protect' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:163:in `process' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:155:in `each' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:155:in `process' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:36:in `describe' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/object.rb:11:in `describe' -/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/sortedset/flatten_merge_spec.rb:4 -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:55:in `load' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:55:in `files' -/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/mspec.rb:55:in `files' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:49:in `each' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:49:in `files' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:41:in `process' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/commands/mspec-run.rb:87:in `run' -/home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/utils/script.rb:217:in `main' -/home/chkbuild/tmp/build/ruby-1.8//mspec/bin/mspec-run:8 - - ) SortedSet#flatten returns a copy of self with each included SortedSet flattened ERROR ArgumentError: value must respond to <=> (eval):18:in `add' @@ -27705,7 +27692,7 @@ Finished in seconds -2555 files, 10603 examples, 35479 expectations, 22 failures, 20 errors +2560 files, 10640 examples, 35544 expectations, 22 failures, 18 errors exit 1 failed(rubyspec) == end #