COMMIT Added be_computed_by_function matcher. http://github.com/rubyspec/mspec/commit/22ad6ea7da64cd48cc0d9c8d700a1130ac7c525f COMMIT Update #sprintf specs for 1.9 bugfix. http://github.com/rubyspec/rubyspec/commit/2e331078dfeeb262e29467f8dd2808c3cd0e4614 COMMIT Use be_computed_by_function matcher for #sprintf specs. http://github.com/rubyspec/rubyspec/commit/5a520ca9776c5343f50434c9e69faa2e5e518c8b COMMIT No before block for String#bytes encoding feature http://github.com/rubyspec/rubyspec/commit/5091a8b3fbfc367a27bee9ed53a0e5d09351a724 COMMIT Fixed describe string. http://github.com/rubyspec/rubyspec/commit/4c34f4c9fd789267222b3dceed01c0978a809af8 COMMIT Fixed syntax error and warning. http://github.com/rubyspec/rubyspec/commit/e07ebf27fc82b9e403cc0f6433159e6cb99db208 COMMIT Fixed C-API specs after RubySpec sync. http://github.com/rubyspec/rubyspec/commit/fffa80d2d8ab605bbbf3c71d691edfe7fed35d60 COMMIT More C-API spec cleanup. http://github.com/rubyspec/rubyspec/commit/a15b26ca5f6da3be4ef20ffb99b358f5842a8ccd =================================================================== +++ 20110108T022810Z @@ 17584 @@ - 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#module_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 @@ 24316 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/library/bigdecimal/remainder_spec.rb BigDecimal#remainder - it equals modulo, if both values are of same sign +- means self-arg*(self/arg).truncate (FAILED - ) - returns NaN used with zero - returns zero if used on zero - returns NaN if NaN is involved @@ 51833 @@ ruby /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/core/module/module_exec_spec.rb +Module#module_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 @@ 89716 @@ - converts a Bignum to a string with a different base CApiBignumSpecs RBIGNUM_SIGN +- returns C true if the Bignum has a positive sign +- retuns C false if the Bignum has a negative sign Finished in seconds @@ 90024 @@ + bin/ruby mspec/bin/mspec -V -f s -B /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/ruby.1.8.mspec -t /home/chkbuild/tmp/build/ruby-1.8-pth//bin/ruby rubyspec/optional/capi/kernel_spec.rb ruby +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/optional/capi/kernel_spec.rb +C-API Kernel function rb_block_given_p +- returns false if no block is passed +- returns true if a block is passed +C-API Kernel function rb_need_block +- raises a LocalJumpError if no block is given +- does not raise a LocalJumpError if a block is given +C-API Kernel function rb_raise +- raises an exception +- terminates the function at the point it was called +C-API Kernel function rb_throw +- sets the return value of the catch block to the specified value +- terminates the function at the point it was called - raises a NameError if there is no catch block for the symbol +C-API Kernel function rb_warn +- prints a message to $stderr if $VERBOSE evaluates to true +- prints a message to $stderr if $VERBOSE evaluates to false +C-API Kernel function rb_sys_fail +- raises an exception from the value of errno +- can take a NULL message +C-API Kernel function rb_yield +- yields passed argument +- returns the result from block evaluation +- raises LocalJumpError when no block is given +C-API Kernel function rb_yield_values +- yields passed arguments +- returns the result from block evaluation +- raises LocalJumpError when no block is given +C-API Kernel function rb_yield_splat +- yields with passed array's contents +- returns the result from block evaluation +- raises LocalJumpError when no block is given +C-API Kernel function rb_rescue +- executes passed function +- executes passed 'raise function' if a StandardError exception is raised +- passes the user supplied argument to the 'raise function' if a StandardError exception is raised +- passes the raised exception to the 'raise function' if a StandardError exception is raised +- raises an exception if passed function raises an exception other than StandardError +- raises an exception if any exception is raised inside 'raise function' +- makes $! available only during 'raise function' execution +C-API Kernel function rb_rescue2 +- only rescues if one of the passed exceptions is raised +C-API Kernel function rb_ensure +- executes passed function and returns its value +- executes passed 'ensure function' when no exception is raised +- executes passed 'ensure function' when an exception is raised +- raises the same exception raised inside passed function +C-API Kernel function rb_eval_string +- evaluates a string of ruby code +C-API Kernel function rb_block_proc +- converts the implicit block into a proc +C-API Kernel function rb_exec_recursive +- detects recursive invocations of a method and indicates as such +C-API Kernel function rb_set_end_proc +- runs a C function on shutdown +C-API Kernel function rb_f_sprintf +- returns a string according to format and arguments Finished in seconds @@ 90462 @@ /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/optional/capi/ext/string_spec.c: In function ‘string_spec_STR2CSTR_replace’: /home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/optional/capi/ext/string_spec.c:: warning: ‘rb_str2cstr’ is deprecated (declared at /home/chkbuild/tmp/build/ruby-1.8-pth//lib/ruby/1.8/x86_64-linux/ruby.h:306) +/home/chkbuild/tmp/build/ruby-1.8-pth//rubyspec/optional/capi/string_spec.rb +C-API String function rb_str_set_len +- reduces the size of the string +- inserts a NULL byte at the length +- updates the string's attributes visible in C code +C-API String function rb_str_buf_new +- returns the equivalent of an empty string +- returns a string that can be appended to +- returns a string that can be concatentated to another string +- returns a string whose bytes can be accessed by RSTRING_PTR +- returns a string that can be modified by rb_str_resize +- returns a string which can be assigned to from C +- returns a string that can be modified by rb_str_set_len +C-API String function rb_str_new +- returns a new string object from a char buffer of len characters +- returns an empty string if len is 0 +C-API String function rb_str_new2 +- returns a new string object calling strlen on the passed C string +- rb_str_new2 should raise ArgumentError if passed NULL +C-API String function rb_str_new3 +- returns a copy of the string +C-API String function rb_str_new4 +- returns the original string if it is already frozen +- returns a frozen copy of the string +C-API String function rb_str_dup +- returns a copy of the string +C-API String function rb_str_append +- appends a string to another string +C-API String function rb_str_plus +- returns a new string from concatenating two other strings +C-API String function rb_str_buf_cat +- concatenates a C string to a ruby string +C-API String function rb_str_cat +- concatenates a C string to ruby string +C-API String function rb_str_cat2 +- concatenates a C string to a ruby string +C-API String function rb_str_cmp +- returns 0 if two strings are identical +- returns -1 if the first string is shorter than the second +- returns -1 if the first string is lexically less than the second +- returns 1 if the first string is longer than the second +- returns 1 if the first string is lexically greater than the second +C-API String function rb_str_split +- splits strings over a splitter +C-API String function rb_str2inum +- converts a string to a number given a base +C-API String function rb_cstr2inum +- converts a C string to a number given a base +C-API String function rb_str_substr +- returns a substring +C-API String function rb_str_to_str +- calls #to_str to coerce the value to a String +- raises a TypeError if coercion fails +C-API String function RSTRING +- returns struct with a pointer to the string's contents +- allows changing the characters in the string +- allows changing the string and calling a rb_str_xxx function +- allows changing the string and calling a method via rb_funcall +- returns a struct with the string's length +C-API String function RSTRING_PTR +- returns a pointer to the string's contents +- allows changing the characters in the string +- reflects changes after a rb_funcall +C-API String function RSTRING_LEN +- returns the size of the string +C-API String function StringValue +- does not call #to_str on a String +- does not call #to_s on a String - calls #to_str on non-String objects +- does not call #to_s on non-String objects +C-API String function rb_str_resize +- reduces the size of the string +- updates the string's attributes visible in C code +- increases the size of the string +C-API String function rb_str_intern +- returns a symbol created from the string +- raises an ArgumentError if passed an empty string +- raises an ArgumentError if the passed string contains NULL characters +C-API String function rb_str2cstr +- returns a pointer to the string's content and its length +- allows changing the characters in the string +C-API String function STR2CSTR +- returns a pointer to the string's content +- allows changing the characters in the string +C-API String function rb_str_freeze +- freezes the string +C-API String function rb_str_hash +- hashes the string into a number Finished in seconds +1 file, 59 examples, expectations, 0 failures, 0 errors == rubyspec/optional/capi/struct_spec.rb #