aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * test/ruby/test_complex.rb: added some tests.tadf2008-12-042-1/+42
| | | | | | | | * test/ruby/test_rational.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.popen3): simplified.akr2008-12-041-85/+53
| | | | | | | | | | | | | | (Open3.popen_run): extracted from Open3.popen3. (Open3.popen2): new method. (Open3.popen2e): new method. (Open3.pipeline_rw): new method. (Open3.pipeline_r): new method. (Open3.pipeline_w): new method. (Open3.pipeline_run): new private method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (check_exec_fds): resolve cascaded child fd reference.akr2008-12-041-8/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ossl_ssl_read_nonblock):matz2008-12-041-0/+15
| | | | | | | OpenSSL::SSL::SSLSocket should implement read_nonblock. a patch from Aaron Patterson in [ruby-core:20277]. fix: #814 [ruby-core:20241] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c (nurat_{to_s,inspect}): provides better representationtadf2008-12-031-0/+10
| | | | | | | | for in-finite imag part. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (EXEC_OPTION_DUP2_CHILD): defined.akr2008-12-031-0/+20
| | | | | | | | | | | | (check_exec_redirect_fd): check :in, :out and :err. (check_exec_redirect): check [:child, fd]. (check_exec_fds): validate EXEC_OPTION_DUP2_CHILD array. (run_exec_dup2_child): new function. (rb_run_exec_options): call run_exec_dup2_child. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (check_exec_redirect): accept :in, :out, :err as redirectakr2008-12-031-0/+5
| | | | | | | target. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert.tadf2008-12-031-3/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rational.rb: add a test.mame2008-12-021-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_range.rb: add a test.mame2008-12-021-0/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_string.rb: add some tests.mame2008-12-021-0/+43
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.popen3): merge hash options if given. akr2008-12-021-0/+205
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_tcp.rb (test_recvfrom): already can run on mswin32.usa2008-12-021-3/+2
| | | | | | | | * test/socket/test_tcp.rb (test_recvfrom, test_encoding): use IP address instead of host name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_tcp.rb (test_recvfrom, test_encoding): shouldn't assumeusa2008-12-021-4/+4
| | | | | | | that th is not nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (rb_fiber_start): calls with exact argument number.nobu2008-12-011-0/+4
| | | | | | | [ruby-core:20088] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_regexp.rb (TestRegexp#test_parse_curly_brace):yugui2008-11-301-1/+3
| | | | | | | now accepts quantifier on anchrs agian by r20391. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (simple_default_value): extracts simplest defaultnobu2008-11-282-0/+113
| | | | | | | | | | | | | | | argument value. * iseq.c (rb_iseq_parameters): returns parameter list. * proc.c (get_proc_iseq, get_method_iseq): handles ifunc and bmethod. * proc.c (rb_proc_parameters, rb_method_parameters): added Proc#parameters and Method#parameters. [ruby-core:19759] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): bigdecimalmatz2008-11-271-3/+1
| | | | | | | division (including modulo) should raise ZeroDivisionError as integer division. [incompatible] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flodivmod): floating point division should raisematz2008-11-271-3/+1
| | | | | | ZeroDivisionError as integer division. [incompatible] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpException): bigdecimal zeromatz2008-11-261-1/+5
| | | | | | | | | | division should raise FloatDomainError if mode VP_EXCEPTION_ZERODIVIDE is set. [ruby-dev:37204] * ext/bigdecimal/bigdecimal.c (BigDecimal_mode): should handle VP_EXCEPTION_ZERODIVIDE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpAlloc): avoid ALLOCA_N() to avoidmatz2008-11-251-3/+3
| | | | | | | | | | | | | | segmentation fault caused by (insanely) long decimal values. [ruby-dev:37189] fix #794 * ext/bigdecimal/bigdecimal.c (BigDecimal_dump, BigDecimal_to_i, BigDecimal_to_f, BigDecimal_to_s, BigDecimal_split, BigDecimal_inspect): ditto. * ext/bigdecimal/bigdecimal.c (VpToString): small performance improvement. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (strftime): ignores '_' flag for %[LN].tadf2008-11-241-0/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime): The # flag should work with %a, %A, %b,shugo2008-11-241-0/+7
| | | | | | | | %B, and %h. [ruby-dev:37162] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime): A width specifier for %t and %n shouldshugo2008-11-241-0/+12
| | | | | | | | work. [ruby-dev:37160] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime): The precision of %0N should be 9.shugo2008-11-241-1/+1
| | | | | | | [ruby-dev:37156] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime): The default precision should be 1, notshugo2008-11-241-0/+5
| | | | | | | | 0. [ruby-dev:37155] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (inspect): changed again.tadf2008-11-242-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_method.rb (TestMethod#test_default_accessibility):yugui2008-11-221-4/+4
| | | | | | fixed a wrong expectation in the test case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r20309 from ruby_1_9_1 to trunk.yugui2008-11-221-9/+8
| | | | | | | | * test/cgi/test_cgi_session.rb (setup, teardown): uses a temporary directory for testing session stores. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_method.rb (test_default_accessiblity): test case foryugui2008-11-221-0/+16
| | | | | | | | [ruby-dev:37124]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a valuematz2008-11-191-0/+4
| | | | | | out of range of Time. [ruby-core:19919] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed fails occasionally [ruby-dev:37119]. thanks, shinichiro.h.seki2008-11-181-10/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb (ProgName): fixed for svn, based on a patch fromnobu2008-11-181-0/+4
| | | | | | | Nobuhiro IMAI at [ruby-dev:37108]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/timer.rb: removed svn:executable.yugui2008-11-1110-0/+0
| | | | | | | | | | | | | | | | | | * lib/rubygems/validator.rb: ditto * test/cgi/test_cgi_modruby.rb: ditto * test/cgi/test_cgi_multipart.rb: ditto * test/cgi/test_cgi_session.rb: ditto: ditto * test/cgi/testdata/file1.html: ditto * test/cgi/testdata/small.png: ditto * test/cgi/testdata/large.png: ditto * test/cgi/test_cgi_core.rb: ditto * test/cgi/test_cgi_header.rb: ditto * test/cgi/test_cgi_cookie.rb: ditto * test/cgi/test_cgi_tag_helper.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (inspect): reverted the previous change.tadf2008-11-112-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_transcode.rb: unnecessary setup methodduerst2008-11-111-15/+0
| | | | | | | (setup_really_needed?) removed git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/single_byte.trans, macgreek-tbl.rb, macroman-tbl.rb,duerst2008-11-111-0/+347
| | | | | | | | | | | | | | macromania-tbl.rb, macturkish-tbl.rb, macukraine-tbl.rb, ibm437-tbl.rb, ibm852-tbl.rb, ibm855-tbl.rb, ibm857-tbl.rb, ibm860-tbl.rb, ibm861-tbl.rb, ibm862-tbl.rb, ibm863-tbl.rb, ibm865-tbl.rb, ibm866-tbl.rb, ibm869-tbl.rb, ibm775-tbl.rb: new single-byte transcodings (from Yoshihiro Kambayashi) * test/ruby/test_transcode.rb: added tests for the above (from Yoshihiro Kambayashi) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* trivial changes.tadf2008-11-102-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (inspect): changed the format.tadf2008-11-102-3/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/sdbm/test_sdbm.rb (TestSDBM#test_index): Reflect the methodknu2008-11-101-9/+3
| | | | | | | | name change from #index to #key and remove a duplicated test method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix test for 1.8xibbar2008-11-083-10/+57
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix debug codexibbar2008-11-081-5/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb (FileStore): use marshalized data.xibbar2008-11-081-0/+59
| | | | | | | | * test/cgi/session_dir: add a session directory in test. * test/cgi/test_cgi_session.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/gdbm/gdbm.c (fgdbm_index): make #index warn like Hash.matz2008-11-082-6/+6
| | | | | | | | [ruby-dev:37039] * ext/sdbm/init.c (Init_sdbm): typo fixed. [ruby-dev:37039] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_index): make #index warn like Hash.matz2008-11-071-6/+6
| | | | | | | | * ext/dbm/dbm.c (fdbm_key): new method. * ext/sdbm/init.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/rubytypes.rb: support Rational and Complex as 1.8matz2008-11-061-0/+24
| | | | | | does. a patch from Hiroshi Moriyama in [ruby-dev:36899]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/entity.rb (unnormalized): do not callshugo2008-11-061-1/+2
| | | | | | | | | | document.record_entity_expansion if document is nil. see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502535>. Thanks, Naohisa Goto. * test/rexml/test_document.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (fole_s_connect, fole_initialize,suke2008-11-063-0/+24
| | | | | | | | | | | | | | | | folevariant_initialize): check argument type of WIN32OLE.connect, WIN32OLE.new, WIN32OLE_VARIANT.new. * test/win32ole/test_win32ole.rb (test_s_new_exc, test_s_connect_exc): ditto. * test/win32ole/test_win32ole_variant.rb (test_s_new_exc): ditto. * test/win32ole/test_win32ole_method.rb: add assertion of WIN32OLE_METHOD.new. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb(test_readchar): compare in same type.takano322008-11-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_event.rb: rename test class.suke2008-11-024-54/+75
| | | | | | | | | | | * test/win32ole/test_win32ole_variant_outarg.rb: add in order to use ADO instead of Internet Explorer. remove test/win32ole/test_win32ole_variant_with_ie.rb. * test/win32ole/orig_data.csv: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e