COMMIT [Evan Phoenix] Add a few more Dir[] specs http://github.com/rubyspec/rubyspec/commit/e207e099e217395b438ea06a4d25201dd1dbc2b9 COMMIT [Evan Phoenix] Add missing specs for String#chomp! http://github.com/rubyspec/rubyspec/commit/c4296fdfb63921acaf51da4af9bbaf08de6ed2db COMMIT [Evan Phoenix] Start cleanup and organization of the Marshal specs http://github.com/rubyspec/rubyspec/commit/e90d862edfd92f5b9d578367f75906e5bd77be55 COMMIT [Brian Ford] Silence warn_unused_result in C-API spec. http://github.com/rubyspec/rubyspec/commit/11618c0fda46b7c78851c51c4dadc50a8fe878d2 COMMIT [Dirkjan Bussink] Add spec for Module#include return value http://github.com/rubyspec/rubyspec/commit/ab2ddb9fdeb2ad53a98f0b875eb540c6e05fcf8c COMMIT [Graham Batty] Adding spec to confirm that Hash#reject taints. http://github.com/rubyspec/rubyspec/commit/bf0f29d7d9539d1bfacc4b06718395f797379e67 COMMIT [Evan Phoenix] Add specs for nested braces in Dir.glob (@meadow) http://github.com/rubyspec/rubyspec/commit/f0543f1ef2c84cc2130f02f579f20688414d5fab COMMIT [Nikolai Lugovoi] Added spec for Enumerable.include? to check that equality == method is called on enumeration items http://github.com/rubyspec/rubyspec/commit/96451ad3be60b25b97577f2ea810a4780dd90792 COMMIT [Nikolai Lugovoi] Added spec for Array.slice!(0) http://github.com/rubyspec/rubyspec/commit/4ea5c48aeba9e0f9fafc83464b22087a7246ee5c COMMIT [Evan Phoenix] Add spec for Hash#to_a and Enumerable#entries relationship http://github.com/rubyspec/rubyspec/commit/2f49bec580e70e9a594e8449219c14cdabf27957 COMMIT [Nikolai Lugovoi] Added spec for YAML parsing second fraction to microseconds from iso8601 date http://github.com/rubyspec/rubyspec/commit/68bdbf8d9ab8d6bec78d2d014b62f65945c80bf6 COMMIT [Nikolai Lugovoi] specs for rb_io_check_readable/writeable - should accept io in RDWR mode http://github.com/rubyspec/rubyspec/commit/ff2be34b334812167c3f7eaf083e92e9a019ea64 COMMIT [Nikolai Lugovoi] fix spec for rb_io_check_writeable http://github.com/rubyspec/rubyspec/commit/6d2f51defbb937abd7db1f08e489a95014aa9991 COMMIT [Aman Gupta] rb_ary_reverse reverses in-place (closes #792) http://github.com/rubyspec/rubyspec/commit/d07141587f66a6e17b7db18bd8aa5f9a16deec8c COMMIT [Aman Gupta] split up rb_ary_reverse specs http://github.com/rubyspec/rubyspec/commit/78a30c7676d819d9e5cc4c7d00e32b12e6d9e609 COMMIT [Aman Gupta] Marshal.load wraps NameError in ArgumentError http://github.com/rubyspec/rubyspec/commit/21f7c8dc0e10fd106c3c3aa40a9ce48bd8f33c9f COMMIT [Dirkjan Bussink] FreeBSD gives a different exception type http://github.com/rubyspec/rubyspec/commit/6bb255c57b2b5da6db9f0762647516b9ea898774 COMMIT [Evan Phoenix] Add more DATA specs http://github.com/rubyspec/rubyspec/commit/3ba277f86732fd8ee9ec9a36b81e14a5cc2a00d0 COMMIT [Evan Phoenix] Move all DATA specs to one place http://github.com/rubyspec/rubyspec/commit/75fb7d527762b94a056d006acfbddbdea8f958cb COMMIT [Nikolai Lugovoi] specs for BigDecimal::ROUND_HALF_DOWN/ROUND_HALF_EVEN http://github.com/rubyspec/rubyspec/commit/fd355a7c85519cec593477c23f81dc804c4b3202 COMMIT [Nikolai Lugovoi] specs for Marshal.dump/load Integer http://github.com/rubyspec/rubyspec/commit/d2d7a7f8b61c8108f290baca160c49868c4acb20 COMMIT [Brian Ford] Rewrite IO#putc specs and share with Kernel[#.]putc. http://github.com/rubyspec/rubyspec/commit/f05e81cee6c6730bb319422fb8a1943539dedb16 COMMIT [Dirkjan Bussink] Add specs for rb_ary_to_ary http://github.com/rubyspec/rubyspec/commit/7c10b91595e2e6f560367a9a6b124bf928cddbb9 COMMIT [Dirkjan Bussink] Add specs for rb_alias http://github.com/rubyspec/rubyspec/commit/603cd6d36eba00dc6a361fcd7bfef854f561fccd COMMIT [Dirkjan Bussink] Add specs for rb_struct_getmember http://github.com/rubyspec/rubyspec/commit/28ed4a3c11ac65a4cff4be9064c59607fc3b84e9 COMMIT [Dirkjan Bussink] Add spec for the regular case with a start and end given http://github.com/rubyspec/rubyspec/commit/8b0fa483d93d27c6b44e1537ecabba342f1a5d11 COMMIT [Brian Ford] Added SpecTCPServer. http://github.com/rubyspec/rubyspec/commit/ade19e32c9291739b645b961f36658c3f6ce9d82 COMMIT [Brian Ford] Rewrote TCPSocket.new/open specs. http://github.com/rubyspec/rubyspec/commit/932e19a65c5841b37b5a3563191781bd9a0906b4 COMMIT [Brian Ford] Spec for TCPSocket#recv_nonblock. http://github.com/rubyspec/rubyspec/commit/6e4d8f61aab3eebb3c29067bbceaecaaf532281c COMMIT [Brian Ford] Temporary hack to avoid address in use exception. http://github.com/rubyspec/rubyspec/commit/20a0fbdbabf43294ee9a18574216ad0c27b71821 COMMIT [Ivan Samsonov] More specs for File#truncate http://github.com/rubyspec/rubyspec/commit/42f8b9192699a9ca49fceb4c93165ceb48ed49ac COMMIT [Brian Ford] Some tweaks for File#truncate spec. http://github.com/rubyspec/rubyspec/commit/d98395e27b2fe9cc98216db2b1962d73e21afe66 COMMIT [Brian Ford] Simplified SpecTCPServer. http://github.com/rubyspec/rubyspec/commit/0a844275b6f24c4dfb1e4045ce698c59bcfce2a2 COMMIT [Brian Ford] Cleaned up YAML.load specs usec from a ISO8601 timestamp. http://github.com/rubyspec/rubyspec/commit/4ec2c72e96ddea9961e8568b622e5fc6028154eb COMMIT [Brian Ford] Added ruby_bug guard for BigDecimal::ROUND_HALF_DOWN|EVEN. http://github.com/rubyspec/rubyspec/commit/f71ce65b2f4c512a18447f6d9fa2c6e914db3378 =================================================================== +++ 20110412T013032Z @@ 11764 @@ - calls to_int on start and length arguments - removes and return elements in range - calls to_int on range arguments +- returns last element for consecutive calls at zero index - does not expand array with indices out of bounds - does not expand array with negative indices out of bounds - raises a TypeError on a frozen array @@ 12528 @@ - accepts string sets with empty strings with {,,} - matches dot or non-dotfiles with '{,.}*' - respects the order of {} expressions, expanding left most first +- respects the optional nested {} expressions - matches special characters by escaping with a backslash with '\' - recursively matches directories with '**/' - preserves the separator between directory components +- ignores matching through directories that doen't exist +- ignores matching only directories under an nonexistant path Dir.[] - matches multiple recursives @@ 12596 @@ - accepts string sets with empty strings with {,,} - matches dot or non-dotfiles with '{,.}*' - respects the order of {} expressions, expanding left most first +- respects the optional nested {} expressions - matches special characters by escaping with a backslash with '\' - recursively matches directories with '**/' - preserves the separator between directory components +- ignores matching through directories that doen't exist +- ignores matching only directories under an nonexistant path Dir.glob - matches multiple recursives @@ 12611 @@ - matches both dot and non-dotfiles with '*' and option File::FNM_DOTMATCH - matches files with any beginning with '*' and option File::FNM_DOTMATCH - matches any files in the current directory with '**' and option File::FNM_DOTMATCH +- recursively matches any subdirectories except './' or '../' with '**/' from the current directory and option File::FNM_DOTMATCH - recursively matches any subdirectories except './' or '../' with '**/' and option File::FNM_DOTMATCH - accepts a block and yields it with each elements - matches the literal character '\' with option File::FNM_NOESCAPE @@ 12938 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/enumerable/include_spec.rb Enumerable#include? +- returns true if any element == argument for numbers +- returns true if any element == argument for other objects - returns true if any member of enum equals obj when == compare different classes (legacy rubycon) /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/enumerable/inject_spec.rb @@ 12981 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/enumerable/member_spec.rb Enumerable#member? +- returns true if any element == argument for numbers +- returns true if any element == argument for other objects - returns true if any member of enum equals obj when == compare different classes (legacy rubycon) /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/enumerable/min_by_spec.rb @@ 14430 @@ - raises a TypeError if not passed an Integer type for the second argument File#truncate +- does not move the file write pointer to the specified byte offset +- does not move the file read pointer to the specified byte offset - truncates a file - truncates a file size to 0 - truncates a file size to 5 @@ 15464 @@ Hash#reject - is equivalent to hsh.dup.delete_if - returns subclass instance for subclasses +- taints the resulting hash - processes entries with the same order as reject! - returns an Enumerator if called on a non-empty hash without a block - returns an Enumerator if called on an empty hash without a block @@ 15523 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/hash/to_a_spec.rb Hash#to_a - returns a list of [key, value] pairs with same order as each() +- is called for Enumerable#entries /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/hash/to_hash_spec.rb Hash#to_hash @@ 16086 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/putc_spec.rb IO#putc +- calls #to_int to convert an object to a Integer +- raises IOError on a closed stream +- raises an TypeError when passed nil +- raises an TypeError when passed false +- raises an TypeError when passed true +IO#putc with a Fixnum argument +- writes one character as a String +- writes the low byte as a String +IO#putc with a String argument +- writes one character +- writes the first character /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/puts_spec.rb IO#puts @@ 16340 @@ /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/set_encoding_spec.rb /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/io/stat_spec.rb IO#stat +- raises IOError on closed stream (ERROR - ) - returns a File::Stat object for the stream - can stat pipes @@ 17630 @@ - is a private instance method Kernel.putc +- calls #to_int to convert an object to a Integer +- raises IOError on a closed stream +- raises an TypeError when passed nil +- raises an TypeError when passed false +- raises an TypeError when passed true +Kernel.putc with a Fixnum argument +- writes one character as a String +- writes the low byte as a String +Kernel.putc with a String argument +- writes one character +- writes the first character Kernel#putc +- calls #to_int to convert an object to a Integer +- raises IOError on a closed stream +- raises an TypeError when passed nil +- raises an TypeError when passed false +- raises an TypeError when passed true +Kernel#putc with a Fixnum argument +- writes one character as a String +- writes the low byte as a String +Kernel#putc with a String argument +- writes one character +- writes the first character /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/kernel/puts_spec.rb Kernel#puts @@ 18280 @@ - dumps a 'a'..'b' - dumps a Fixnum 0 +Marshal.dump for an Integer +- dumps an Integer 8 +- dumps and Integer -8 +- dumps an Integer 1234 +- dumps an Integer -1234 +- dumps an Integer 4611686018427387903 +- dumps an Integer -4611686018427387903 +- dumps an Integer 2361183241434822606847 +- dumps an Integer -2361183241434822606847 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/marshal/load_spec.rb Marshal::load - raises an ArgumentError when the dumped data is truncated +- raises an ArgumentError when the dumped class is missing - ignores the value of the proc when called with a proc - doesn't call the proc for recursively visited data - loads a array containing objects having _dump method, and with proc @@ 18357 @@ - loads a 'a'..'b' - loads a Fixnum 0 +Marshal::load for an Array - loads a array containing the same objects - loads an array having ivar +Marshal::load for a Hash - loads an extended_user_hash with a parameter to initialize - preserves hash ivars when hash contains a string having ivar +Marshal::load for a String - loads a string having ivar with ref to self +Marshal::load for a Struct - loads a extended_struct having fields with same objects - loads a struct having ivar - loads a struct having fields +Marshal::load for a user Class - loads a user-marshaled extended object - loads a user_object - loads a object - loads an extended Object - loads a object having ivar +Marshal::load for a Regexp - loads an extended Regexp - loads a extended_user_regexp having ivar +Marshal::load for a Float - loads a Float NaN - loads a Float 1.3 - loads a Float -5.1867345e-22 - loads a Float 1.1867345e+22 +Marshal::load for a Integer +- loads an Integer 8 +- loads and Integer -8 +- loads an Integer 1234 +- loads an Integer -1234 +- loads an Integer 4611686018427387903 +- loads an Integer -4611686018427387903 +- loads an Integer 2361183241434822606847 +- loads an Integer -2361183241434822606847 /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/marshal/restore_spec.rb Marshal.restore @@ 19212 @@ - preserves ancestor order - detects cyclic includes - accepts no-arguments +- returns the class it's included into - ignores modules it has already included via module mutual inclusion - clears any caches @@ 20902 @@ - modifies self in place and returns self - returns nil if no modifications were made - raises a TypeError when self is frozen +- does raise an exception when no change would be done and no argument is passed in +- does not raise an exception when no change would be done and no argument is passed in on an empty string - does not raise an exception when the string would not be modified /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/string/chop_spec.rb @@ 25128 @@ - or/and have higher precedence than if unless while until modifiers - if unless while until are non-associative +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/language/predefined/data_spec.rb +The DATA constant +- exists when the main script contains __END__ +- does not exist when the main script contains no __END__ +- does not exist when an included file has a __END__ +- does not change when an included files also has a __END__ +- is included in an otherwise empty file - succeeds in locking the file DATA came from /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/language/predefined_spec.rb @@ 26174 @@ - coerces arguments to BigDecimal if possible - raises TypeError if the argument cannot be coerced to BigDecimal +/Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/library/bigdecimal/round_spec.rb /Users/chkbuild/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/library/bigdecimal/sign_spec.rb BigDecimal#sign - BigDecimal defines several constants for signs @@ 29290 @@ - raises an ArgumentError when called on a closed converter - when given a string or string-like parameter returns a converted version of it - keeps context between calls +- when given a start and end position returns the substring - when given a negative start position counts from the end of string - when the end parameter is omitted or nil goes until the end of the string - when given a positive length @@ 38246 @@ - calls to_int on start and length arguments - removes and return elements in range - calls to_int on range arguments +- returns last element for consecutive calls at zero index - does not expand array with indices out of bounds - does not expand array with negative indices out of bounds - raises a TypeError on a frozen array @@ 38305 @@ Finished in seconds +1 file, 57 examples, expectations, 0 failures, 0 errors == rubyspec/core/array/sort_by_spec.rb #