aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * test/ruby/test_exception.rb (test_else): added.akira2003-10-041-0/+92
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@4672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/uri/* (6 files): added.akira2003-10-046-0/+1074
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/testsuite.rb: changed #<< to return self, and addedntalbott2003-10-032-20/+37
| | | | | | | | | | | | | | | #delete. * test/testunit/test_testsuite.rb: ditto. Also slightly refactored #test_size. * lib/test/unit/collector/objectspace.rb: collector now preserves the hierarchy of suites. * test/testunit/collector/test_objectspace.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c: default keys handled.why2003-10-031-0/+1155
| | | | | | | | | | * ext/syck/syck.h: lowered default buffer size to 16k for increased performance. * test/yaml: checkin of basic unit tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: refactored to use optparse.ntalbott2003-10-031-0/+5
| | | | | | | | | | | | | | | | | | | * lib/test/unit.rb: added support for selecting the output level from the command-line. * lib/test/unit.rb: added a command-line switch to stop processing the command-line, allowing arguments to be passed to tests. * lib/test/unit.rb: changed the method for specifying a runner or a filter from the command-line. * lib/test/unit/collector/objectspace.rb: fixed a bug causing all tests to be excluded when the filter was set to an empty array. * test/testunit/collector/test_objectspace.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: added a default message for #assert,ntalbott2003-10-025-25/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | #assert_block, and #flunk. * test/testunit/test_assertions.rb: ditto. * lib/test/unit/failure.rb: failures now show a better trace of where they occurred. * test/testunit/test_failure.rb: ditto (added). * lib/test/unit/testcase.rb: ditto. * test/testunit/test_testcase.rb: ditto. * lib/test/unit/util/backtracefilter.rb: added. * test/testunit/util/test_backtracefilter.rb: added. * lib/test/unit/error.rb: changed to use BacktraceFilter and improved output. * test/testunit/test_error.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_const_defined_0): look up constants in Object asnobu2003-10-021-1/+4
| | | | | | | | | | well. [ruby-dev:21458] * test/ruby/test_defined.rb (TestDefined::test_defined): test for constants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: should not capture anntalbott2003-10-022-7/+12
| | | | | | | | | | | | | | | | | | | | AssertionFailedError unless explicitly requested. * test/testunit/test_assertions.rb: ditto. * test/testunit/collector/test_objectspace.rb: fixed a test failure caused by methods being returned in different orders on different platforms by moving test sorting from TestSuite into the locations where suites are constructed. [ruby-talk:83156] * lib/test/unit/testcase.rb: ditto. * lib/test/unit/testsuite.rb: ditto. * lib/test/unit/collector/objectspace.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/logger/test_logger.rb: unlinking file before close causes problem undernahi2003-10-015-51/+54
| | | | | | | | | | | | | | | | | | win32 box. * lib/xsd/datatypes.rb(XSDFloat, XSDDouble): add +/- sign explicitly when stringified and embedded into XML instance. Ruby's sprintf may format -0.0 as "0.0" (no minus sign) depending on underlying C sprintf implementation. * test/xsd/test_xsd.rb, test/soap/test_basetype.rb: follow above change. * test/soap/calc/*: give httpd config param "CGIInterpreter". "/usr/bin/env ruby" thing does not work under non-Unix boxes. * ChangeLog: corrected wrong DoW of my log entries... git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/runner.rb: glob for directories.nobu2003-09-301-1/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_iterator.rb: new test test_break__nested_loop[123].aamine2003-09-291-0/+39
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: check if the given logdevice object respond_to :write andnahi2003-09-291-13/+56
| | | | | | | | | | | | :close, not is_a? IO. duck duck. * test/logger/test_logger.rb: self IO.pipe reading/writing may be locked by the flood. use tempfile. * lib/wsdl/xmlSchema/data.rb: wrong constant reference. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/test_fileutils.rb: clean up temporaly symlink. [ruby-dev:21420]aamine2003-09-291-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xsd/charset.rb: XSD::Charset.is_ces did return always true undernahi2003-09-281-3/+24
| | | | | | | | | $KCODE = "NONE" environment. check added. * test/xsd/test_xsd.rb: add tests for above fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/rpc/cgistub.rb: make logging severity threshold higher.nahi2003-09-275-4/+11
| | | | | | | | | | * lib/soap/rpc/standaloneServer.rb: defer WEBrick server start to give a change to reset logging severity threshold. * test/soap/calc/test_*, test/soap/helloworld/test_helloworld.rb: run silent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/test_fileutils.rb: clear all errors on Windows.aamine2003-09-272-21/+53
| | | | | | | * test/fileutils/test_nowrite.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb: new file. only asserts unlink-before-close behaviournahi2003-09-262-1/+33
| | | | | | | | | | now. * test/soap/marshal/test_digraph.rb: should close before unlink. unlink-before-close pattern is not needed here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/soap/*, test/wsdl/*, test/xsd/*: move TestCase classes into each modulenahi2003-09-2612-9/+98
| | | | | | | | namespace. TestMarshal in test/soap/marshal/test_marshal.rb crashed with test/ruby/test_marshal.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test_soapelement.rb: Illegal require path.nahi2003-09-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_marshal.rb: add test for ruby's objects.nahi2003-09-261-0/+280
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb: Added OpenStruct#==.ntalbott2003-09-251-0/+23
| | | | | | | * test/ostruct/test_ostruct.rb: Added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/* (29 files): SOAP4R added.nahi2003-09-2421-0/+2953
| | | | | | | | | | | | | | | | | | | * lib/wsdl/* (42 files): WSDL4R added. * lib/xsd/* (12 files): XSD4R added. * test/soap/* (16 files): added. * test/wsdl/* (2 files): added. * test/xsd/* (3 files): added. * sample/soap/* (27 files): added. * sample/wsdl/* (13 files): added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: add Logger#<<(msg) for writing msg without any formatting.nahi2003-09-231-1/+20
| | | | | | | * test/logger/test_logger.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * reduce expecting size of backtrace.nahi2003-09-201-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: typo fixed.nahi2003-09-201-0/+212
| | | | | | | * test/logger/test_logger.rb: new file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/testunit/*: Added.ntalbott2003-09-198-0/+1185
| | | | | | | | | | | | | | | | * lib/test/unit.rb: Documentation update. * lib/test/unit/ui/console/testrunner.rb (TestRunner#initialize): Ditto. * lib/test/unit.rb: Factored out an ObjectSpace collector. * lib/test/unit/collector/objectspace.rb: Ditto. * sample/testunit/*: Added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/fileassertions.rb: new file.aamine2003-09-173-0/+452
| | | | | | | | * test/fileutils/test_fileutils.rb: new file. * test/fileutils/test_nowrite.rb: new file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/strscan/test_stringscanner.rb: require test/unit.aamine2003-09-171-8/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/strscan/test_stringscanner.rb: new file.aamine2003-09-171-0/+403
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/csv/test_csv.rb: add negative tests of row_sep.nahi2003-09-161-0/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: add extra pamameter to specify row(record) separater character.nahi2003-09-152-122/+245
| | | | | | | | | | | | | | | To parse Mac's CR separated CSV, do like this. CSV.open("mac.csv", "r", ?,,?\r) { |row| p row.to_a } The 3rd parameter in this example ?, is for column separater and the 4th ?\r is for row separater. Row separater is nil by default. Nil separater means "\r\n" or "\n". * test/csv/test_csv.rb: add tests for above feature. * test/csv/mac.csv: added. Sample CR separated CSV file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (struct tag): dst should be VALUE.nobu2003-09-091-2/+3
| | | | | | | | * eval.c (localjump_destination): stop at the scope where the current block was created. [ruby-dev:21353] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_*.rb: assert_same, assert_match, and so on.nahi2003-09-069-28/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sync to lib/csv/tests/csv_ut.rb.nahi2003-09-051-9/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#order, #permute, #parse): allow annobu2003-09-0530-800/+765
| | | | | | | | | | array as argument. * test/ruby/test_*.rb: moved invariants to left side in assert_equal, and use assert_nil, assert_raises and so on. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * same as the previous commit.nahi2003-09-052-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_*.rb: replace 'assert(a == b)' with assert_equal(a, b)'nahi2003-09-0524-563/+565
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/runner.rb: arguments should be keys.nobu2003-09-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (test_system): check existence of rubyeban2003-09-051-7/+12
| | | | | | | interpreter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/runner.rb: convert Version to numeric array.nobu2003-09-051-3/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/runner.rb: add Release.nobu2003-09-051-3/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (--version): fix assignment/reference order.nobu2003-09-051-10/+21
| | | | | | | | | | | | | | * lib/optparse.rb (OptionParser#help): new; OptionParser#to_s may be deprecated in future. * lib/optparse/version.rb (OptionParser#show_version): hide Object. * test/runner.rb: fix optparse usage. * test/runner.rb: glob all testsuits if no tests given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/runner.rb: added. gets testcases from command line and runs it.nahi2003-09-052-6/+42
| | | | | | | * test/ruby/test_gc.rb: remove useless part which was for dumping test result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_gc.rb: added. splitter.rb which I made to splitnahi2003-09-051-0/+41
| | | | | | | | sample/test.rb into test/ruby/test_* kindly removed GC test (the last section in the original test) to reduce things to be worried. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_iterator.rb (test_block_in_arg): add no blocknobu2003-09-041-104/+82
| | | | | | | | | | given tests. * test/ruby/test_iterator.rb (test_ljump): uncomment LocalJumpError test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby: tests for ruby itself.nahi2003-09-0429-1/+2224
| | | | | | | | | | | * test/ruby/test_*.rb: split sample/test.rb into 28 test/unit testcases. some tests could not be translates... search '!!' mark to see it. * test/csv/test_csv.rb: should require 'csv', not '../lib/csv'. test runner should set load path correctly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/csv/test_csv.rb: close opened files for CSV::IOBuf explicitly. openednahi2003-09-041-151/+181
| | | | | | | file cannot be removed under win32 box. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/csv/test_csv.rb: use remove_const to reduce warnings. use Dir.tmpdir tonahi2003-09-042-76/+72
| | | | | | | locate working files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e