COMMIT Rational#div raises ZeroDivisionError for 0.0 on 1.9 http://github.com/rubyspec/rubyspec/commit/cf769ccb3a0b7d1b655e220b05c603234cddbe22 COMMIT Rational#divmod on 1.9 raises ZeroDivisionError for 0.0 http://github.com/rubyspec/rubyspec/commit/6224afa805fdd9622bd2d9f7c8fa086ed4845f8b COMMIT Rational#** returns Complex(1.0) for 0.0 on 1.9 http://github.com/rubyspec/rubyspec/commit/9264c2156081f6f634d5062e6ff1642f3e6a7948 COMMIT Rational#% returns Complex for neg. self/exp on 1.9 http://github.com/rubyspec/rubyspec/commit/98558991a358469e3f1aa28709bc749b400d0e63 COMMIT Rational#%: Use @method in shared spec http://github.com/rubyspec/rubyspec/commit/ca160c8e0bfd24fbc4976b6946214741256b4c2e COMMIT Rational#% raises ZeroDivisionError for 0.0 on 1.9 http://github.com/rubyspec/rubyspec/commit/d14205da36d6dcbb05f4046fd418acfc9a29c144 COMMIT Dir#exist?/#exists?: Specify 1.9 method. http://github.com/rubyspec/rubyspec/commit/d9aff568bc0efc115fc7a53b4bf4a571382e8c51 COMMIT Fix typos in descriptions. Closes issue #1. http://github.com/rubyspec/rubyspec/commit/cdfd69dbced48c135251c6e1beeb0086fcf5c396 COMMIT String#valid_encoding?: Specify 1.9 method. http://github.com/rubyspec/rubyspec/commit/b8730ec1edc6331f6b7539541b875100c6066e84 COMMIT String#setbyte: Specify 1.9 method. http://github.com/rubyspec/rubyspec/commit/5da6a346dc21aa008d4b44418ccbb0c386c73352 COMMIT String#getbyte: Specify 1.9 method. http://github.com/rubyspec/rubyspec/commit/4eef57aa7133d84f62ef4d48d2a2478a1b31362a COMMIT TODO: Ask ruby-core about Array#pack encoding on 1.9 http://github.com/rubyspec/rubyspec/commit/78f8eb5bb1b564ed7225818b45aa9659446c07a6 COMMIT Rename builtin_constants.rb -> builtin_constants_spec.rb http://github.com/rubyspec/rubyspec/commit/fc8dee49986b50c696f344af5a95259c154e2400 COMMIT Regexp#inspect hides encoding flags on 1.9; fix test. http://github.com/rubyspec/rubyspec/commit/2204b06cd1c4b9a4d1494f795d4a510ad979b171 COMMIT ARGF#binmode tags input as ASCII-8BIT on 1.9 http://github.com/rubyspec/rubyspec/commit/4c9a423c56f4dc5572b71852a796bfb4aa4116a4 --- 20090626T080517 +++ 20090627T080429 @@ -1,9093 +1,9093 @@ IMAPTest#test_imaps_with_ca_file: s: . IMAPTest#test_starttls: s: . IMAPTest#test_unexpected_eof: s: . -MinitestSpec#test_needs_to_verify_regexp_matches: s: . -MinitestSpec#test_needs_to_verify_types_of_objects: s: . -MinitestSpec#test_needs_to_verify_using_respond_to: s: . -MinitestSpec#test_needs_to_verify_nil: s: . -MinitestSpec#test_needs_to_catch_an_unexpected_exception: s: . +MinitestSpec#test_needs_to_verify_inequality: s: . MinitestSpec#test_needs_to_be_able_to_catch_a_minitest_assertion_exception: s: . +MinitestSpec#test_needs_to_verify_throw: s: . +MinitestSpec#test_needs_to_verify_using_respond_to: s: . +MinitestSpec#test_needs_to_verify_using_any_operator: s: . +MinitestSpec#test_needs_to_verify_types_of_objects: s: . MinitestSpec#test_needs_to_verify_identity: s: . -MinitestSpec#test_needs_to_verify_mismatch: s: . -MinitestSpec#test_needs_to_verify_inequality: s: . +MinitestSpec#test_needs_to_verify_regexp_matches: s: . +MinitestSpec#test_needs_to_verify_floats_within_a_delta: s: . +MinitestSpec#test_needs_to_have_all_methods_named_well: s: . +MinitestSpec#test_needs_to_verify_nil: s: . MinitestSpec#test_needs_to_verify_kinds_of_objects: s: . -MinitestSpec#test_needs_to_verify_using_any_operator: s: . -MinitestSpec#test_needs_raise_if_an_expected_exception_is_not_raised: s: . +MinitestSpec#test_needs_to_catch_an_unexpected_exception: s: . MinitestSpec#test_needs_to_catch_an_expected_exception: s: . -MinitestSpec#test_needs_to_have_all_methods_named_well: s: . -MinitestSpec#test_needs_to_verify_non_nil: s: . -MinitestSpec#test_needs_to_verify_equality: s: . +MinitestSpec#test_needs_to_verify_mismatch: s: . MinitestSpec#test_needs_to_verify_non_identity: s: . -MinitestSpec#test_needs_to_verify_throw: s: . -MinitestSpec#test_needs_to_verify_floats_within_a_delta: s: . +MinitestSpec#test_needs_to_verify_equality: s: . +MinitestSpec#test_needs_to_verify_non_nil: s: . +MinitestSpec#test_needs_raise_if_an_expected_exception_is_not_raised: s: . NonString#test_6: s: . NonString#test_7: s: . OpenSSL::TestASN1#test_decode: s: . @@ -15979,6 +15979,7 @@ ARGF.binmode - returns self - does not raise an error +- sets the file's encoding to ASCII-8BIT (FAILED - ) /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/bytes_spec.rb ARGF.bytes @@ -17282,7 +17283,7 @@ - properly handles recursive arrays - does return subclass instances with Array subclasses - does not call to_ary on array subclasses -- does not infected even if an original array is tainted +- does not get infected even if an original array is tainted - does not infected even if an original array is untrusted /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/array/pop_spec.rb @@ -17312,7 +17313,7 @@ /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/array/product_spec.rb Array#product -- returns convert arguments using :to_ary +- returns converted arguments using :to_ary - returns the expected result - has no required argument @@ -17865,6 +17866,31 @@ - behaves like Kernel.eval(..., self) - needs to be completed +/home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/builtin_constants/builtin_constants_spec.rb +RUBY_VERSION +- is a String + +RUBY_PATCHLEVEL +- is a Fixnum + +RUBY_COPYRIGHT +- is a String + +RUBY_DESCRIPTION +- is a String + +RUBY_ENGINE +- is a String + +RUBY_PLATFORM +- is a String + +RUBY_RELEASE_DATE +- is a String + +RUBY_REVISION +- is a Fixnum + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/class/allocate_spec.rb Class#allocate - returns an instance of self @@ -18034,6 +18060,30 @@ - returns an Array of filenames in an existing directory including dotfiles - raises a SystemCallError if called with a nonexistent diretory +/home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/dir/exist_spec.rb +Dir.exist? +- returns true if the given directory exists +- returns true for '.' +- returns true for '..' +- understands non-ASCII paths +- understands relative paths +- returns false if the given directory doesn't exist +- doesn't require the name to have a trailing slash +- doesn't expand paths +- returns false if the argument exists but is a file + +/home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/dir/exists_spec.rb +Dir.exists? +- returns true if the given directory exists +- returns true for '.' +- returns true for '..' +- understands non-ASCII paths +- understands relative paths +- returns false if the given directory doesn't exist +- doesn't require the name to have a trailing slash +- doesn't expand paths +- returns false if the argument exists but is a file + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/dir/foreach_spec.rb Dir.foreach - yields all names in an existing directory to the provided block @@ -20620,7 +20670,7 @@ - replaces the block passed to Hash.new - uses :to_proc on its argument - overrides the static default -- raise an error if passed stuff not convertible to procs +- raises an error if passed stuff not convertible to procs /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/hash/default_spec.rb Hash#default @@ -24671,7 +24721,7 @@ Rational#div passed a Float - performs integer division and returns the result -- raises a FloatDomainError when the argument is 0.0 +- raises a ZeroDivisionError when the argument is 0.0 (FAILED - ) /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/rational/divide_spec.rb Rational#/ @@ -24702,7 +24752,7 @@ Rational#divmod when passed a Float - returns the quotient as Integer and the remainder as Float - returns the quotient as Integer and the remainder as Float -- raises a FloatDomainError when passed 0 +- raises a ZeroDivisionError when passed 0 (FAILED - ) /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/rational/equal_value_spec.rb Rational#== @@ -24725,12 +24775,12 @@ Rational#** when passed Rational - returns self raised to the argument as a Rational if possible - returns self raised to the argument as a Float if necessary -- returns NaN when self is negative and the passed argument is not 0 +- returns a complex number when self is negative and the passed argument is not 0 (FAILED - ) Rational#** when passed Float - returns self converted to Float and raised to the passed argument -- returns 1.0 when the passed argument is 0 -- returns NaN if self is negative and the passed argument is not 0 +- returns a complex number if self is negative and the passed argument is not 0 (FAILED - ) +- returns Complex(1.0) when the passed argument is 0.0 Rational#** when pass Integer - returns the Rational value of self raised to the passed argument @@ -24763,7 +24813,7 @@ - returns the remainder when this value is divided by other - returns a Float value when the argument is Float - raises ZeroDivisionError on zero denominator -- raises FloatDomainError when the argument is 0.0 +- raises a ZeroDivisionError when the argument is 0.0 /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/rational/multiply_spec.rb Rational#* @@ -25268,7 +25318,7 @@ - yields subclass instances for subclasses - returns self - tries to convert the separator to a string using to_str -- not care if the string is modified while substituting +- does not care if the string is modified while substituting - raises a TypeError when the separator can't be converted to a string - accept string-like separator - returns an enumerator when no block given @@ -25418,6 +25468,20 @@ - returns false if obj does not respond to to_str - returns obj == self if obj responds to to_str +/home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/string/getbyte_spec.rb +String#getbyte +- returns an Integer if given a valid index +- starts indexing at 0 +- counts from the end of the String if given a negative argument +- returns an Integer between 0 and 255 +- regards a multi-byte character as having multiple bytes +- mirrors the output of #bytes +- interprets bytes relative to the String's encoding +- returns nil for out-of-bound indexes +- regards the empty String as containing no bytes +- raises an ArgumentError unless given one argument +- raises a TypeError unless its argument can be coerced into an Integer + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/string/gsub_spec.rb String#gsub with pattern and replacement - doesn't freak out when replacing ^ @@ -25558,7 +25622,7 @@ - yields subclass instances for subclasses - returns self - tries to convert the separator to a string using to_str -- not care if the string is modified while substituting +- does not care if the string is modified while substituting - raises a TypeError when the separator can't be converted to a string - accept string-like separator - returns an enumerator when no block given @@ -25845,6 +25909,18 @@ - sets $~ to MatchData of last match and nil when there's none for access from outside - taints the match strings if self is tainted, unless the tain happens inside the scan +/home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/string/setbyte_spec.rb +String#setbyte +- returns an Integer +- modifies the receiver +- changes the byte at the given index to the new byte +- allows changing bytes in multi-byte characters +- can invalidate a String's encoding +- regards a negative index as counting from the end of the String +- raises an IndexError unless the index is inside the String +- raises a RuntimeError if self is frozen +- raises a TypeError unless the second argument is an Integer + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/string/size_spec.rb String#size - returns the length of self @@ -26305,18 +26381,27 @@ String#upto - passes successive values, starting at self and ending at other_string, to the block - calls the block once even when start eqals stop -- upto calls block with self even if self is less than stop but stop length is less than self length -- upto doesn't call block if stop is less than self and stop length is less than self length +- calls block with self even if self is less than stop but stop length is less than self length +- doesn't call block if stop is less than self and stop length is less than self length - doesn't call the block if self is greater than stop - stops iterating as soon as the current value's character count gets higher than stop's - returns self - tries to convert other to string using to_str - raises a TypeError if other can't be converted to a string -- works with symbols to +- works with symbols - returns an enumerator when no block given - uses the ASCII map for single letters - stops before the last value if exclusive +/home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/string/valid_encoding_spec.rb +String#valid_encoding? +- returns true if the String's encoding is valid +- returns true if self is valid in the current encoding and other encodings +- returns true for all encodings self is valid in (ERROR - ) +- returns false if self is valid in one encoding, but invalid in the one it's tagged with +- returns false if self contains a character invalid in the associated encoding +- returns false if a valid String had an invalid character appended to it + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/struct/each_pair_spec.rb Struct#each_pair - passes each key value pair to the given block @@ -26386,7 +26471,7 @@ - fails with invalid constant name as first argument - raises a TypeError if object doesn't respond to to_sym - raises a TypeError if object is not a Symbol -- instance_eval's a passed block +- processes passed block with instance_eval - creates a constant in subclass' namespace - creates an instance - creates reader methods