summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * test/monitor/test_monitor.rb: fix the timing problem by Queue.shugo2003-11-121-32/+47
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/monitor/test_monitor.rb: added.shugo2003-11-121-0/+144
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: un-deprecated #assert_not_nil tontalbott2003-11-081-2/+9
| | | | | | | | | | maintain symmetry with #assert_nil. Also added better output for #assert_kind_of. * test/testunit/tc_assertions.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/wsdl/raa/*: add new testcase for WSDL loading, parsing and reading.nahi2003-11-087-10/+758
| | | | | | | | | | | | | | | | * test/soap/marshal/*: backport from soap4r/1.5.1. all differences are for ruby/1.6. * lib/soap/*: backport from soap4r/1.5.1. all differences are for ruby/1.6. * lib/wsdl/data.rb, lib/wsdl/xmlSchema/data.rb: move definition of ArrayTypeAttrName from ::WSDL::XMLSchema::* to ::WSDL::*. [ruby-talk:84813] * lib/wsdl/soap/definitions.rb: element name typo in custom exception struct definition which is needed for wsdlDriver; camelCase -> underscore_name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Switch::PlacedArgument::parse):nobu2003-11-055-0/+255
| | | | | | | | | do not remove next argument if empty value is placed. * test/optparse: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/mapping/factory.rb: mark marshalled basetype objects whennahi2003-10-312-2/+23
| | | | | | | | | | | | | | | | @allow_original_mapping is true. multi-referencing basetype node is prohibited in SOAP/1.1 encoding but soap4r's original ruby object mapping requires basetype to be marked to detect self referencing loop. e.g. o = 1; o.instance_eval { @iv = o } soap4r's original mapping is only used through soap/marshal API. * test/soap/marshal/test_marshal.rb: add tests for self referencing immutable objects. * test/soap/calc/test_calc_cgi.rb: fix test name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/generator.rb: better XML pretty printing.nahi2003-10-301-0/+1
| | | | | | | | | | | * lib/soap/encodingstyle/soapHandler.rb: remove unnecessary namespace assignment in the element which has "encodingStyle" attribute, and add necessary namespace assignment for "arrayType" attribute. * test/soap/calc/test_calc_cgi.rb: take over $DEBUG to ruby process through CGI. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test Hash#each, and change load_limitseki2003-10-304-5/+19
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (READ_DATA_BUFFERED): new macro to detect whether stdiomatz2003-10-302-64/+79
| | | | | | | | | | buffer filled. * io.c (rb_io_fptr_cleanup): move path deallocation to rb_io_fptr_finalize (finalizer called by GC). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_invoke): single array value to normal Proc#callmatz2003-10-292-7/+33
| | | | | | | | (i.e. not via lambda call), should be treated just like yield. [ruby-dev:21726] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/drb/drbtest.rb: use rbconfig.rb to make the path of ruby interpreter tonahi2003-10-291-3/+6
| | | | | | | exec, instead of test/ruby/envutil.rb, git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* change yield2 test. [ruby-dev:21739]seki2003-10-281-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (new_yield): remove magic argument rule; "yield [1,2]"matz2003-10-282-49/+49
| | | | | | | | should yield single array of two elements, not two values. [ruby-dev:21726] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add yield test for [ruby-dev:21707]seki2003-10-261-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_each): Hash#each should yield single value.matz2003-10-241-1/+1
| | | | | | | | | [ruby-talk:84420] * hash.c (env_each): ditto for ENV.each. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/soap/calc/*, test/soap/helloworld/*: set logging threshold to ERROR.nahi2003-10-224-9/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):nobu2003-10-226-16/+23
| | | | | | | | | | | | | | ignore tests which raised LoadError. * test/drb/drbtest.rb, test/ruby/test_beginendblock.rb, test/ruby/test_system.rb: avoid requiring same file twice. * test/drb/test_drbssl.rb, test/drb/test_drbunix.rb: should not use ARGV unless invoked directly. do not create test cases unless required libraries are available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/drb/drbtest.rb: import drb common test utilities.matz2003-10-211-0/+298
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_cleanup): call finalizers and exit procs beforematz2003-10-216-394/+83
| | | | | | | | | terminating threads. * eval.c (ruby_cleanup): preserve ruby_errinfo before ruby_finalize_0(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/soap/calc/*, test/soap/helloworld/*: catch the exception from testnahi2003-10-204-0/+24
| | | | | | | server thread and recover. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* import drb/runit/*.rbseki2003-10-2015-0/+1260
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (PUSH_FRAME): generate unique number to be TAG_JUMP()matz2003-10-201-1/+1
| | | | | | | | | | destination. * eval.c (localjump_destination): use unique number in ruby_frame for localjump destination. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_signal.rb (test_signal): restore old trap.nobu2003-10-201-2/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/soap/calc/*, test/soap/helloworkd/*: changed port# of test server.nahi2003-10-187-11/+19
| | | | | | | (17171) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_range.rb: added.usa2003-10-171-0/+13
| | | | | | | * MANIFEST: add test/ruby/test_range.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/digest/test_digest.rb (test_eq): show failed class.nobu2003-10-152-3/+24
| | | | | | | | * test/ruby/test_iterator.rb (test_break, test_return_trace_func): test localjump destination. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/digest/test_digest.rb: Moved from ext/digest/test.rb.knu2003-10-141-0/+91
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/baseData.rb: Introduce SOAPType as the common ancestor ofnahi2003-10-145-24/+178
| | | | | | | | | | | | | | | | | | | | | | | SOAPBasetype and SOAPCompoundtype. * lib/soap/generator.rb, lib/soap/element.rb, lib/soap/encodingstyle/*: Encoding methods signature change. Pass SOAPGenerator as a parameter. * lib/soap/mapping/*, test/soap/marshal/test_marshal.rb: Refactoring for better marshalling/unmarshalling support. Now I think SOAP marshaller supports all kind of object graph which is supported by Ruby's original marshaller. Of course there could be bugs as always. Find it. :-) * lib/soap/rpc/standaloneServer.rb: Set severity threshould to INFO. DEBUG is too noisy. * lib/xsd/datatypes.rb: DateTime#of is obsoleted. Use DateTime#offset. * test/wsdl/emptycomplextype.wsdl, test/xsd/xmlschema.xml: Avoid useless warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb: use Config::CONFIG["ruby_install_name"],eban2003-10-131-2/+10
| | | | | | | not "ruby". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_feature_p): match by classified suffix.nobu2003-10-131-1/+4
| | | | | | | | | | | | | | | * eval.c (rb_require_safe): require library in the specified safe level. * variable.c (rb_autoload, rb_autoload_load): restore safe level when autoload was called. [ruby-dev:21338] * intern.h: prototypes; rb_require_safe. * test/runner.rb: accept non-option arguments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_new4): should not preserve FL_TAINT status in thematz2003-10-131-4/+7
| | | | | | | | | | | | | | | | | internal shared string. [ruby-dev:21601] * string.c (rb_str_new4): ditto. * eval.c: use EXIT_SUCCESS and EXIT_FAILURE for exit values. * process.c: ditto. [ruby-dev:38521] * lib/debug.rb (debug_command): should enter emacs mode when assigned any value to the environment variable "EMACS". On Meadow, (getenv "EMACS") is "meadow". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: removed installation instructions.ntalbott2003-10-083-81/+429
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/test/unit/ui/testrunnermediator.rb: moved the run flag to a more central location. * lib/test/unit.rb: ditto. * lib/test/unit.rb: extracted the running code in to AutoRunner. * lib/test/unit/autorunner.rb: added. * lib/test/unit/collector/objectspace.rb: extracted common test collection functionality in to a module. * lib/test/unit/collector.rb: ditto; added. * test/testunit/collector/test_objectspace.rb: ditto. * lib/test/unit/collector/dir.rb: added. Supports collecting tests out of a directory structure. * test/testunit/collector/test_dir.rb: added. * test/runner.rb: simplified to use the new capabilities. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_beginendblock.rb, test/ruby/endblockwarn.rb: commited oldernahi2003-10-072-15/+1
| | | | | | | version.. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_beginendblock.rb: add tests for nested BEGIN/END.nahi2003-10-074-19/+110
| | | | | | | | | * test/ruby/beginmainend.rb: add tests for nested BEGIN/END. * test/ruby/endblockwarn.rb: new file added to test of END-in-method warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_beginendblock.rb (test_endinmethod): END{} is nownobu2003-10-071-1/+4
| | | | | | | allowed in eval. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb (IOReader, BasicWriter): call binmode when a given IOnahi2003-10-061-9/+47
| | | | | | | | | | respond_to?(:binmode). record separator was wrong when you gave text mode IO to Reader.parse and Writer.generate. * test/csv/test_csv.rb: add tests for above change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_iterator.rb (test_block_argument_without_paren): added.nahi2003-10-061-6/+11
| | | | | | | (follows sample/test.rb) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: added test fornahi2003-10-062-1/+19
| | | | | | | eval-ed BEGIN END order. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/uri/*: translated RUNIT to Test::Unit.akira2003-10-056-167/+72
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xsd/datatypes.rb: Rational -> Decimal string bug fix.nahi2003-10-052-2/+9
| | | | | | | | | * test/soap/marshal/test_marshal.rb: ditto. * test/soap/calc/test_calc_cgi.rb: add Config::CONFIG["EXEECT"] to RUBYBIN. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: add tests aboutnahi2003-10-052-3/+43
| | | | | | | scope, order and allowd syntax. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb: added. split "rubybin" from test_system.rb.nahi2003-10-054-5/+33
| | | | | | | | | | | * test/ruby/test_system.rb: use envutil.rb * test/ruby/test_beginendblock.rb: added. * test/ruby/beginmainend.rb: added. used in test_beginendblock.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/testunit/runit/test_testresult.rb: removed some unnecessaryntalbott2003-10-051-17/+1
| | | | | | | cruft. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubyunit.rb: aliasing TestCase into the top level isntalbott2003-10-054-0/+702
| | | | | | | | | | | | problematic. * lib/runit/assert.rb: fixed a couple of bugs caused by recent refactoring in Test::Unit. * test/testunit/runit/*: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: will use pp for output if available.ntalbott2003-10-051-4/+4
| | | | | | | | | | Can be disabled by setting Assertions.use_pp = false. * test/testunit/test_assertions.rb: made a small change to exception formatting. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: made small improvements to assertionntalbott2003-10-042-66/+45
| | | | | | | | | | | | messages. Deprecated Assertions#assert_not_nil; use #assert instead. * test/testunit/test_assertions.rb: ditto. * test/testunit/util/test_procwrapper.rb: use #assert instead of #assert_not_nil. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_exception.rb (test_else): added.akira2003-10-041-0/+92
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: changed assertion messages to rely morentalbott2003-10-041-25/+31
| | | | | | | | | | heavily on #inspect. Added backtrace filtering for exceptions in assertion messages. * test/testunit/test_assertions.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/netHttpClient.rb: follow http-access2. hosts which matchesnahi2003-10-041-1/+1
| | | | | | | | | | | | | | | ENV['no_proxy'] or ENV['NO_PROXY'] is not proxyed. - [,:] separated. ("ruby-lang.org:rubyist.net") - no regexp. (give "ruby-lang.org", not "*.ruby-lang.org") - if you want specify hot by IP address, give full address. ("192.168.1.1, 192.168.1.2") * lib/soap/rpc/cgistub.rb: return "Status: XXX MMM" line. * test/runner.rb: give testsuite name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/uri/* (6 files): added.akira2003-10-046-0/+1074
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e