summaryrefslogtreecommitdiffstats
path: root/test/ruby
Commit message (Collapse)AuthorAgeFilesLines
...
* add test_rand_0x100000000.akr2005-02-071-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update readpartial document.akr2005-01-081-0/+2
| | | | | | | don't try read timeout on Windows. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (init_by_array): imported from mt19937ar-cok.tgz.akr2005-01-041-0/+124
| | | | | | | | | | | | | | | (genrand_int32): ditto. (genrand_real): replaced with genrand_res53 in mt19937ar-cok. (rand_init): support bignum for longer seed. (random_seed): generate longer seed. (make_mask): new function. (limited_rand): ditto. (limited_big_rand): ditto. (rb_f_rand): call limited_rand and limited_big_rand. [ruby-dev:25403] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_super.rb (TestSuper#test_define_method): now methodsnobu2004-12-121-1/+1
| | | | | | | from procs can call super. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (string_content): get rid of segfault at empty evstr.nobu2004-12-081-0/+4
| | | | | | | fixed: [ruby-dev:25113] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/io/nonblock/test_flush.rb (TestIONonblock#test_flush): writenobu2004-12-071-0/+20
| | | | | | | | | | | | | operation ignores EAGAIN. * test/ruby/test_super.rb (TestSuper#test_define_method): test for super from proc. [ruby-core:03856] * test/socket/test_tcp.rb (TestTCPSocket#test_recvfrom): make execution order more precise. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rubyio.h, intern.h, io.c, file.c, process.c, ext/socket/socket.c,akr2004-12-061-6/+6
| | | | | | | | | | | ext/pty/pty.c, ext/io/wait/wait.c, ext/openssl/ossl_ssl.c: Use own buffering mechanism instead of stdio. * io.c, ext/stringio/stringio.c, test/ruby/ut_eof.rb: EOF flag removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (convert_type): [ruby-core:03845]matz2004-11-291-5/+0
| | | | | | | | | | | | | | | * eval.c (rb_funcall_rescue): new function. * object.c (rb_Array): avoid using rb_respond_to(). * object.c (rb_Integer): ditto. * eval.c (get_backtrace): no conversion for nil. * parse.y (reduce_nodes): empty body should return nil. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regparse.c, test/ruby/test_regexp.rb: fixed problem with UTF-8 characters ↵ksaito2004-11-281-0/+12
| | | | | | that have U+00FE or invalid characters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regexec.c, test/ruby/test_regexp.rb: fixed segmentation falut ↵ksaito2004-11-281-0/+4
| | | | | | ([ruby-dev:24887]). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_gets_rs): add more tests.aamine2004-11-201-0/+27
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_gsub): internal buffer should not be listed bymatz2004-11-181-0/+50
| | | | | | | ObjectSpace.each_object(). [ruby-dev:24919] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (f_rest_arg): store rest args into invisible local variabenobu2004-11-181-0/+68
| | | | | | | in order to get rid of SEGV at ZSUPER. [ruby-dev:24913] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wed Nov 17 23:47:30 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>nahi2004-11-171-0/+26
| | | | | | | * test/ruby/test_settracefunc.rb: added. [ruby-dev:24884] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb (test_truncate_wbuf): we want to testusa2004-11-111-3/+3
| | | | | | | only File#truncate, not behavior of seek(2). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for a problem of [ruby-talk:116455]akr2004-10-291-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:24643].akr2004-10-291-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:24460]akr2004-10-091-0/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test String#sum for bits=0..7.akr2004-10-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for String#sum.akr2004-10-031-0/+19
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:24060], [ruby-dev:24065], [ruby-dev:24103],akr2004-09-072-0/+54
| | | | | | | | [ruby-dev:24190], [ruby-dev:24191], [ruby-dev:24194], [ruby-dev:24197], [ruby-dev:24202], [ruby-dev:24213], [ruby-dev:24223] and [ruby-dev:24228]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check constants (Fcntl::F_SETFL, Fcntl::F_GETFL and Fcntl::O_NONBLOCK)akr2004-08-161-5/+4
| | | | | | | instead of trapping NotImplementedError. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rescue NotImplementedError by fcntl.akr2004-08-161-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test.akr2004-08-111-0/+69
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb (test_fnmatch): added more tests.ocean2004-08-021-0/+104
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtod): should not convert string in the form ofocean2004-07-141-3/+20
| | | | | | | | | "-I.FE-X" which both "I" and "F" are ommitted. [ruby-dev:23883] * test/ruby/test_float.rb (test_strtod): add test for bug fix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb (test_fnmatch): some tests for File.fnmatchocean2004-06-301-0/+78
| | | | | | | are added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add an assertion.akr2004-06-251-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_f_sprintf): support FZERO and FSPACE with NaN/Inf.usa2004-06-221-0/+66
| | | | | | | * test/ruby/test_sprintf.rb (test_nan, test_inf): add tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_set_safe_level, proc_invoke, rb_mod_define_method): notnobu2004-06-191-0/+31
| | | | | | | set $SAFE for methods defined from Proc. [ruby-dev:23697] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add extend testcase for #first, #last, #shift, #unshift, #pop, #push methods.michal2004-06-161-0/+28
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb: use local variables instead of a globalnobu2004-06-161-49/+49
| | | | | | | variable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_yield_0, proc_invoke, proc_arity): allow passing a blocknobu2004-05-251-0/+5
| | | | | | | | | to a Proc. [ruby-dev:23533] * parse.y (block_par, block_var): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (EnvUtil::rubybin): give priority tonobu2004-05-191-1/+3
| | | | | | | environment variable. [ruby-dev:23538] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_float.rb(test_strtod): Add test for signed 0.000...1ocean2004-05-151-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_float.rb: Add test for util.c revision 1.42.ocean2004-05-141-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_float.rb: added test_strtod to test Float("0").nahi2004-05-091-0/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): skip uncompiled extensions.nobu2004-04-081-0/+1
| | | | | | | | | | | | | | | | | | | | | * lib/mkmf.rb (create_makefile): emit no rules for static library if $static is nil, e.g., outside of ext/. * lib/test/unit/ui/console/testrunner.rb (test_started): show test name via $0. * runruby.rb: set environments to use the compiled binary. * test/runner.rb: do nothing while cross-compiling. * test/drb/drbtest.rb, test/soap/calc/test_calc_cgi.rb: use envutil to know ruby binary. * test/ruby/envutil.rb: give priority to RUBY environment variable to use just compiled binary and libraries. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add an assertion for [0x100000000].pack("U").akr2004-04-071-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test_symmetry_bignum.akr2004-04-011-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test_pack_U.akr2004-04-011-0/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add 2 assertions.akr2004-03-311-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test. [ruby-dev:22619]akr2004-03-311-4/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more tests for Time.utc.akr2004-03-311-5/+29
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for minimum 32bit signed time_t for Time.utc.akr2004-03-301-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (search_time_t): limit guess range by mktime if it isakr2004-03-301-0/+10
| | | | | | | availabe. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_cvar_set): class variables become private to thematz2004-03-191-8/+12
| | | | | | | | | | | particular class/module. [Ruby2] * variable.c (rb_cvar_get): ditto. * io.c (rb_io_sync): need not to check writable. [ruby-core:02674] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_eq): avoid false positive by using scope andmatz2004-03-182-4/+4
| | | | | | | | | | | dyna_vars. no longer use frame.uniq. * eval.c (proc_arity): arity is now defined as number of parameters that would not be ignored. i.e. Proc.new{}.arity returns zero. update test suites too. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c: get rid of warnings.nobu2004-03-031-146/+151
| | | | | | | | | | | * lib/rss/taxonomy.rb: ditto. * lib/rdoc/ri/ri_formatter.rb: ditto. * test/ruby/test_assignment.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_iterator.rb (test_ljump): cannot usenobu2004-03-021-4/+11
| | | | | | | assert_nothing_raised due to passing block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e