OLDREV 30479 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30479&diff_format=u NEWREV 30553 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30553&diff_format=u CHG ChangeLog 30479->30552 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?p1=branches/ruby_1_8/ChangeLog&r1=30479&r2=30553&pathrev=30553&diff_format=u CHG version.h 30477->30553 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/version.h?p1=branches/ruby_1_8/version.h&r1=30479&r2=30553&pathrev=30553&diff_format=u CHG ext/zlib/zlib.c 26430->30552 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ext/zlib/zlib.c?p1=branches/ruby_1_8/ext/zlib/zlib.c&r1=30479&r2=30553&pathrev=30553&diff_format=u COMMIT Added :launch flags for mspec to launch the target. http://github.com/rubyspec/mspec/commit/4c65ecbe81062f2ab01c26184745819bc0ab57c6 COMMIT Fixed Array#cycle specs. http://github.com/rubyspec/rubyspec/commit/f9f677416c68a7b04e1c8ea6ffceffe1413bf948 COMMIT Fixed Array() specs. http://github.com/rubyspec/rubyspec/commit/2636963d136d724192b6f5073e778e960910affc COMMIT Fixed whitespace in Numeric#step specs. http://github.com/rubyspec/rubyspec/commit/b5fb412137b11df4945e93c8e13d2fc134b43585 COMMIT Fixed Numeric#step specs. http://github.com/rubyspec/rubyspec/commit/9cdefce68edf9995322ddbfbce9dd2aa1f1780cb COMMIT Move specs of Object#instance_exec http://github.com/rubyspec/rubyspec/commit/c6687e80e28be5213e560320eb84b42e10c6b8e5 COMMIT Cleanup whitespace http://github.com/rubyspec/rubyspec/commit/1a889353b4d59ff3c52616b333336c8770c055c7 COMMIT More RUBYOPT specs and cleanup. http://github.com/rubyspec/rubyspec/commit/aceab7aba2336e730fa6e8c9fc774bc74b31a82c COMMIT Clean up some C-API IO specs. http://github.com/rubyspec/rubyspec/commit/7082dd42864389d5b84c1a6935e2e2c3bee478f7 COMMIT More rb_ary_delete_at specs. http://github.com/rubyspec/rubyspec/commit/4ab12fc473471bfc82d84a1f0fa84f3947b2854f COMMIT Add spec for custom seperator with ** http://github.com/rubyspec/rubyspec/commit/c56ac8061ec7b3901352cc7a5cf0ea6d13f35318 COMMIT More better RARRAY specs. http://github.com/rubyspec/rubyspec/commit/af12a69ea531fed0c4d854072c9068aa5f2926c8 COMMIT Better RSTRING spec. http://github.com/rubyspec/rubyspec/commit/ffc05cd5e7e2304203ad3ab42983075b322e1acb COMMIT Rewrote rb_scan_args specs. http://github.com/rubyspec/rubyspec/commit/69255c46b1f1a38d34a4f2bd258efe5aaccd5783 =================================================================== +++ 20110116T024202Z @@ 9311 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/array/count_spec.rb /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/array/cycle_spec.rb Array#cycle +- does not yield and returns nil when the array is empty +- does not yield and returns nil when passed 0 +- iterates the array 'count' times yielding each item to the block +- iterates indefinitely when not passed a count +- iterates indefinitely when passed nil +- does not rescue StopIteration when not passed a count +- does not rescue StopIteration when passed a count +- iterates the array Integer(count) times when passed a Float count +- calls #to_int to convert count to an Integer - raises a TypeError if #to_int does not return an Integer +- raises a TypeError if passed a String +- raises a TypeError if passed an Object +- raises a TypeError if passed true - raises a TypeError if passed false /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/array/delete_at_spec.rb @@ 16405 @@ - raises IOError on closed stream /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/kernel/Array_spec.rb +Kernel +- has private instance method Array() Kernel.Array - does not call #to_ary on an Array - calls #to_ary to convert the argument to an Array - does not call #to_a on an Array +- calls #to_a if the argument does not respond to #to_ary +- calls #to_a if #to_ary returns nil +- raises a TypeError if #to_a returns nil +- returns an Array containing the argument if it responds to neither #to_ary nor #to_a +- returns an empty Array when passed nil +- raises a TypeError if #to_ary does not return an Array +- raises a TypeError if #to_a does not return an Array Kernel#Array - does not call #to_ary on an Array - calls #to_ary to convert the argument to an Array - does not call #to_a on an Array +- calls #to_a if the argument does not respond to #to_ary +- calls #to_a if #to_ary returns nil +- raises a TypeError if #to_a returns nil +- returns an Array containing the argument if it responds to neither #to_ary nor #to_a +- returns an empty Array when passed nil +- raises a TypeError if #to_ary does not return an Array +- raises a TypeError if #to_a does not return an Array /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/kernel/Complex_spec.rb /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/kernel/Float_spec.rb @@ 19355 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb Numeric#step - raises an ArgumentError when step is 0 +- raises an ArgumentError when step is 0.0 - defaults to step = 1 +- returns an Enumerator when step is 0 +- returns an Enumerator when not passed a block and self > stop +- returns an Enumerator when not passed a block and self < stop - returns an Enumerator that uses the given step +- does not rescue ArgumentError exceptions +- does not rescue TypeError exceptions Numeric#step with [stop, step] +- increments self using #+ until self > stop when step > 0 +- decrements self using #+ until self < stop when step < 0 +Numeric#step Numeric#step with [stop, step] when self, stop and step are Fixnums - yields only Fixnums +Numeric#step Numeric#step with [stop, +step] when self, stop and step are Fixnums - yields while increasing self by step until stop is reached - yields once when self equals stop - does not yield when self is greater than stop +Numeric#step Numeric#step with [stop, -step] when self, stop and step are Fixnums - yields while decreasing self by step until stop is reached - yields once when self equals stop - does not yield when self is less than stop +Numeric#step Numeric#step with [stop, step] +- yields only Floats when self is a Float +- yields only Floats when stop is a Float +- yields only Floats when step is a Float +Numeric#step Numeric#step with [stop, +step] when self, stop or step is a Float +- yields while increasing self by step while stop < stop - yields once when self equals stop - does not yield when self is greater than stop +Numeric#step Numeric#step with [stop, -step] when self, stop or step is a Float +- yields while decreasing self by step while self > stop - yields once when self equals stop - does not yield when self is less than stop +Numeric#step Numeric#step with [stop, +Infinity] - yields once if self < stop (FAILED - ) +- yields once when stop is Infinity (FAILED - ) - yields once when self equals stop (FAILED - ) +- yields once when self and stop are Infinity (FAILED - ) +Numeric#step Numeric#step with [stop, -infinity] - does not yield when self > stop (FAILED - ) +- does not yield when stop is Infinity /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/to_c_spec.rb /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/to_int_spec.rb @@ 19447 @@ - does not preserve frozen state from the original /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/object/initialize_spec.rb +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/object/instance_exec_spec.rb +Object#instance_exec +- raises a LocalJumpError unless given a block - has an arity of -1 +- accepts arguments with a block +- doesn't pass self to the block as an argument +- passes any arguments to the block +- only binds the exec to the receiver - binds self to the receiver - executes in the context of the receiver - has access to receiver's instance variables @@ 24862 @@ - includes TOPLEVEL_BINDING Processing RUBYOPT +- adds the -I path to $LOAD_PATH +- sets $DEBUG to true for '-d' +- sets $VERBOSE to true for '-w' +- sets $VERBOSE to true for '-W' +- sets $VERBOSE to nil for '-W0' +- sets $VERBOSE to false for '-W1' +- sets $VERBOSE to true for '-W2' +- requires the file for '-r' +- sets $KCODE to 'NONE' with '-K' +- sets $KCODE to 'NONE' with '-Ka' +- sets $KCODE to 'NONE' with '-KA' +- sets $KCODE to 'NONE' with '-Kn' +- sets $KCODE to 'NONE' with '-KN' +- sets $KCODE to 'EUC' with '-Ke' +- sets $KCODE to 'EUC' with '-KE' +- sets $KCODE to 'UTF8' with '-Ku' +- sets $KCODE to 'UTF8' with '-KU' +- sets $KCODE to 'SJIS' with '-Ks' +- sets $KCODE to 'SJIS' with '-KS' - raises a RuntimeError for '-a' - raises a RuntimeErrorError for '-p' - raises a RuntimeErrorError for '-n' @@ 34467 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/array/cycle_spec.rb Array#cycle +- does not yield and returns nil when the array is empty +- does not yield and returns nil when passed 0 +- iterates the array 'count' times yielding each item to the block +- iterates indefinitely when not passed a count +- iterates indefinitely when passed nil +- does not rescue StopIteration when not passed a count +- does not rescue StopIteration when passed a count +- iterates the array Integer(count) times when passed a Float count +- calls #to_int to convert count to an Integer - raises a TypeError if #to_int does not return an Integer +- raises a TypeError if passed a String +- raises a TypeError if passed an Object +- raises a TypeError if passed true - raises a TypeError if passed false @@ 48769 @@ ruby /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/kernel/Array_spec.rb +Kernel +- has private instance method Array() Kernel.Array - does not call #to_ary on an Array - calls #to_ary to convert the argument to an Array - does not call #to_a on an Array +- calls #to_a if the argument does not respond to #to_ary +- calls #to_a if #to_ary returns nil +- raises a TypeError if #to_a returns nil +- returns an Array containing the argument if it responds to neither #to_ary nor #to_a +- returns an empty Array when passed nil +- raises a TypeError if #to_ary does not return an Array +- raises a TypeError if #to_a does not return an Array Kernel#Array - does not call #to_ary on an Array - calls #to_ary to convert the argument to an Array - does not call #to_a on an Array +- calls #to_a if the argument does not respond to #to_ary +- calls #to_a if #to_ary returns nil +- raises a TypeError if #to_a returns nil +- returns an Array containing the argument if it responds to neither #to_ary nor #to_a +- returns an empty Array when passed nil +- raises a TypeError if #to_ary does not return an Array +- raises a TypeError if #to_a does not return an Array Finished in seconds @@ 54495 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb Numeric#step - raises an ArgumentError when step is 0 +- raises an ArgumentError when step is 0.0 - defaults to step = 1 +- returns an Enumerator when step is 0 +- returns an Enumerator when not passed a block and self > stop +- returns an Enumerator when not passed a block and self < stop - returns an Enumerator that uses the given step +- does not rescue ArgumentError exceptions +- does not rescue TypeError exceptions Numeric#step with [stop, step] +- increments self using #+ until self > stop when step > 0 +- decrements self using #+ until self < stop when step < 0 +Numeric#step Numeric#step with [stop, step] when self, stop and step are Fixnums - yields only Fixnums +Numeric#step Numeric#step with [stop, +step] when self, stop and step are Fixnums - yields while increasing self by step until stop is reached - yields once when self equals stop - does not yield when self is greater than stop +Numeric#step Numeric#step with [stop, -step] when self, stop and step are Fixnums - yields while decreasing self by step until stop is reached - yields once when self equals stop - does not yield when self is less than stop +Numeric#step Numeric#step with [stop, step] +- yields only Floats when self is a Float +- yields only Floats when stop is a Float +- yields only Floats when step is a Float +Numeric#step Numeric#step with [stop, +step] when self, stop or step is a Float +- yields while increasing self by step while stop < stop - yields once when self equals stop - does not yield when self is greater than stop +Numeric#step Numeric#step with [stop, -step] when self, stop or step is a Float +- yields while decreasing self by step while self > stop - yields once when self equals stop - does not yield when self is less than stop +Numeric#step Numeric#step with [stop, +Infinity] - yields once if self < stop (FAILED - ) +- yields once when stop is Infinity (FAILED - ) - yields once when self equals stop (FAILED - ) +- yields once when self and stop are Infinity (FAILED - ) +Numeric#step Numeric#step with [stop, -infinity] - does not yield when self > stop (FAILED - ) +- does not yield when stop is Infinity ) +Numeric#step Numeric#step with [stop, +Infinity] yields once if self < stop FAILED Expected [NaN] + to equal [42] /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:176 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 54570 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:228:in `process' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:4 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `load' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `files' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 54584 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +Numeric#step Numeric#step with [stop, +Infinity] yields once when stop is Infinity FAILED +Expected [] + to equal [42] /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:181 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 54606 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:228:in `process' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:4 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `load' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `files' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 54620 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +Numeric#step Numeric#step with [stop, +Infinity] yields once when self equals stop FAILED Expected [NaN] + to equal [42] /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:186 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 54642 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:228:in `process' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:4 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `load' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `files' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 54656 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +Numeric#step Numeric#step with [stop, +Infinity] yields once when self and stop are Infinity FAILED +Expected [] + to equal [Infinity] /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:191 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 54678 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:228:in `process' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:4 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `load' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `files' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 54692 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +Numeric#step Numeric#step with [stop, -infinity] does not yield when self > stop FAILED Expected [NaN] to equal [] /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:234 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 54714 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:228:in `process' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:4 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `load' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `files' /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 54729 @@ Finished in seconds +1 file, 33 examples, expectations, 5 failures, 0 errors exit 1 failed(rubyspec/core/numeric/step_spec.rb) == rubyspec/core/numeric/to_c_spec.rb #