COMMIT Getting started on Module.class_exec specs. http://github.com/rubyspec/rubyspec/commit/e05e0f588d841ee556a44e79c007c68bf55cc9bc COMMIT Numeric#step: spec with infinite steps [redmine:781] http://github.com/rubyspec/rubyspec/commit/8e10b50f12a42bf8c1a92abc43168de974b9b247 COMMIT * Random: Specify behavior for ranges with Integers & Floats http://github.com/rubyspec/rubyspec/commit/609330876db75bf0a6c4fc06fea4c8ec2dad2a49 COMMIT * Random: change test to rely on type (Float) instead of value http://github.com/rubyspec/rubyspec/commit/351df6a527bc6582cc2e12e817ee69bfedd431ba COMMIT remove superfluous comment http://github.com/rubyspec/rubyspec/commit/6369020e4dc33d7c1d24fbd088ffa1002b4649c5 =================================================================== +++ 20101010T004839Z @@ 16496 @@ - raises an ArgumentError when a block and normal arguments are given /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/module/class_exec_spec.rb +Module#class_exec - does not add defined methods to other classes +- defines method in the receiver's scope - evaluates a given block in the context of self +- raises an LocalJumpError when no block is given /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/module/class_variable_defined_spec.rb Module#class_variable_defined? @@ 16790 @@ - raises an ArgumentError when a block and normal arguments are given /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/module/module_exec_spec.rb +Module#class_exec - does not add defined methods to other classes +- defines method in the receiver's scope - evaluates a given block in the context of self +- raises an LocalJumpError when no block is given /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/module/module_function_spec.rb Module#module_function with specific method names @@ 17134 @@ - returns an Enumerator when passed no block and self > stop - returns an Enumerator when passed no block and self < stop - increments self (using #+) until self > stop when step > 0 +- decrements self (using #+) until self < stop when step < 0 Numeric#step with [stop, step] when self, stop and step are Fixnums - raises an ArgumentError when step is 0 @@ 17155 @@ - raises an ArgumentError when step is 0 - yields only Floats +Numeric#step with [stop, +infinity] +- yields once if self < stop (FAILED - ) +- yields once when self equals stop (FAILED - ) +- does not yield when self > stop (FAILED - ) Numeric#step with [stop, +step] when self, stop or step is a Float - 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 with [stop, -infinity] +- yields once if self > stop (FAILED - ) +- yields once when self equals stop (FAILED - ) +- does not yield when self > stop (FAILED - ) Numeric#step with [stop, -step] when self, stop or step is a Float - yields while decreasing self by step until stop is reached @@ 33937 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +Numeric#step with [stop, +infinity] yields once if self < stop FAILED +Expected [NaN] + to equal [42, 42] /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:159 /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/numeric/step_spec.rb:143: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' @@ 33956 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:199:in `process' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:154 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/guards/bug.rb:20:in `ruby_bug' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:153 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 33972 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +Numeric#step with [stop, +infinity] yields once when self equals stop FAILED +Expected [NaN] + to equal [42, Infinity] /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:166 /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' @@ 33991 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:199:in `process' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:154 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/guards/bug.rb:20:in `ruby_bug' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:153 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 34007 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +Numeric#step with [stop, +infinity] does not yield when self > stop FAILED +Expected [NaN] + to equal [] /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:173 /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' @@ 34026 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:199:in `process' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:154 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/guards/bug.rb:20:in `ruby_bug' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:153 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 34042 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +Numeric#step with [stop, -infinity] yields once if self > stop FAILED +Expected [NaN] + to equal [42, 42] /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:204 /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' @@ 34061 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:199:in `process' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:199 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/guards/bug.rb:20:in `ruby_bug' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:198 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 34077 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +Numeric#step with [stop, -infinity] yields once when self equals stop FAILED +Expected [NaN] + to equal [42, Infinity] /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:211 /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' @@ 34096 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:199:in `process' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:199 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/guards/bug.rb:20:in `ruby_bug' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:198 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 34112 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/bin/mspec-run:8 ) +Numeric#step with [stop, -infinity] does not yield when self > stop FAILED +Expected [NaN] + to equal [] /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:218 /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' @@ 34131 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/context.rb:199:in `process' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:199 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/guards/bug.rb:20:in `ruby_bug' +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/numeric/step_spec.rb:198 /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8-pth//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 36947 @@ Finished in seconds +3284 files, 13642 examples, expectations, 73 failures, 53 errors exit 1 failed(rubyspec) == end #