aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * rescue LoadError. [ruby-dev:23539]gotoyuzo2004-05-194-7/+35
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6367 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@6366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/inlinetest.rb (InlineTest::loadtest): requiring library withnobu2004-05-191-1/+2
| | | | | | | | replaced $0 can make $0 == __FILE__ block be evaluated twice. [ruby-dev:23538] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: writes lines with "\n" when row separator is not given.nahi2004-05-181-310/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | formerly it was "\r\n". * lib/csv.rb: [CAUTION] API change * CSV::Row removed. a row is represented as just an Array. since CSV::Row was a subclass of Array, it won't hurt almost all programs except one which depended CSV::Row#match. * CSV::Cell removed. a cell is represented as just a String or nil(NULL). this change will cause widespread destruction. CSV.open("foo.csv", "r") do |row| row.each do |cell| if cell.is_null # Cell#is_null p "(NULL)" else p cell.data # Cell#data end end end must be just; CSV.open("foo.csv", "r") do |row| row.each do |cell| if cell.nil? p "(NULL)" else p cell end end end * lib/csv.rb: [CAUTION] record separator(CR, LF, CR+LF) behavior change. CSV.open, CSV.parse, and CSV,generate now do not force opened file binmode. formerly it set binmode explicitly. with CSV.open, binmode of opened file depends the given mode parameter "r", "w", "rb", and "wb". CSV.parse and CSV.generate open file with "r" and "w". setting mode properly is user's responsibility now. * lib/csv.rb: accepts String as a fs (field separator/column separator) and rs (record separator/row separator) * lib/csv.rb: added CSV.foreach(path, rs = nil, &block). CSV.foreach now does not handle "| cmd" as a path different from IO.foreach. needed? * test/csv/test_csv.rb: updated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test for OpenSSL::X509gotoyuzo2004-05-175-0/+799
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_initialize): accept optional 3rd argument toakr2004-05-162-3/+38
| | | | | | | | | specify an open flag. (Init_dbm): define open flags: DBM::READER, DBM::WRITER, DBM::WRCREAT and DBM::NEWDB. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6326 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@6322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/MANIFEST, ext/syck/depend: new file.nobu2004-05-151-17/+23
| | | | | | | | | | * lib/yaml/rubytypes.rb: range of exponential floats. [ruby-core:02824] * test/yaml/test_yaml.rb: tests for strings start with colon and some round trip. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml.rb: removed fallback to pure Ruby parser.why2004-05-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * lib/yaml/baseemitter.rb (node_text): rewriting folded scalars. * ext/syck/syck.h: reports style of scalars now, be they plain, block single-, or double-quoted. * ext/syck/syck.c: ditto. * ext/syck/gram.c: ditto. * ext/syck/node.c: ditto. * ext/syck/token.c: ditto. * ext/syck/rubyext.c (yaml_org_handler): symbols loaded only if scalar style is plain. * test/yaml/test_yaml.rb (test_perl_regexp): updated test to match new regexp serialization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6315 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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@6283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (fu_list): Array() breaks pathes including "\n". ↵aamine2004-05-071-0/+18
| | | | | | | | | [ruby-core:02843] * test/fileutils/test_fileutils.rb (mkdir): test "\n" in path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add freeze test for dbm and gdbm.akr2004-05-072-0/+38
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/test_fileutils.rb (rm_f, rm_r): test :force flag.aamine2004-05-021-0/+19
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check hash tuple sizeseki2004-04-211-19/+26
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a gdbm test for [ruby-dev:23381]akr2004-04-151-0/+33
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* change pattern matching [druby-ja:98]seki2004-04-131-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/soap/calc/test_calc_cgi.rb: not parent, parent directory of it.nobu2004-04-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/drb/drbtest.rb, test/soap/calc/test_calc_cgi.rb: restore $:nobu2004-04-082-4/+14
| | | | | | | after require. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): skip uncompiled extensions.nobu2004-04-084-11/+8
| | | | | | | | | | | | | | | | | | | | | * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@6125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add an assertion for [0x100000000].pack("U").akr2004-04-071-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:23344].akr2004-04-071-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/parser.rb, lib/rss/1.0.rb: accepted rdf:resource orkou2004-04-071-0/+31
| | | | | | | | | | resource attribute in rdf:li. * test/rss/test_parser.rb: added test for above change. * lib/rss/dublincore.rb: reverted style. * lib/rss/xmlparser.rb: normalized XMLParser class hierarchy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix hash tuple bugseki2004-04-061-8/+36
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check zlib existence.akr2004-04-061-4/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update test_new_nil.akr2004-04-051-7/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/zlib/test_zlib.rb: new file.akr2004-04-051-0/+16
| | | | | | | (TestZlibGzipWriter#test_new_nil): test for [ruby-dev:23228]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test_symmetry_bignum.akr2004-04-011-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test_pack_U.akr2004-04-011-0/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add 2 assertions.akr2004-03-311-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test. [ruby-dev:22619]akr2004-03-311-4/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more tests for Time.utc.akr2004-03-311-5/+29
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@6049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rss/*: Test::Unit::TestCase -> RSS::TestCase andkou2004-03-2111-955/+977
| | | | | | | Test::Unit::Assertions -> RSS::Assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rss/test_xml-stylesheet.rb: added tests for xml-stylesheet.kou2004-03-214-1/+178
| | | | | | | | * lib/rss/xml-stylesheet.rb: added xml-stylesheet parsing function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_cvar_set): class variables become private to thematz2004-03-194-13/+23
| | | | | | | | | | | 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: svn+ssh://ci.ruby-lang.org/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: svn+ssh://ci.ruby-lang.org/ruby/trunk@5972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use druby://localhost:0, [ruby-dev:23078]seki2004-03-135-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/test_fileutils.rb (test_rm_r): test if rm_rf can remove a ↵aamine2004-03-101-0/+9
| | | | | | symlink to the directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: HTTPHeader keeps its header fields as an array.aamine2004-03-061-10/+77
| | | | | | | | | | * lib/net/http.rb: new method HTTPHeader#add_header, get_fields. * lib/net/http.rb: new method HTTPHeader#content_length=. * lib/net/http.rb: new method HTTPHeader#content_type, main_type, sub_type, type_params, content_type=, set_content_type. * lib/net/http.rb (HTTPHeader#basic_encode): result of pack(m) may contain multiple LFs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c: new method StringScanner#initialize_copy to allow ↵aamine2004-03-051-0/+61
| | | | | | | | | #dup and #clone. * test/strscan/test_strscan.rb: test StringScanner#dup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5889 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@5882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed to work with Ruby test suite (patch from Nobu)dblack2004-03-023-66/+57
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5873 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@5866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* First commit of scanf test filesdblack2004-03-014-0/+422
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * MANIFEST: add test_erb.rbseki2004-02-281-0/+40
| | | | | | | | * lib/erb.rb, test/erb/test_erb.rb: don't forget filename, if both filename and safe_level given. [ruby-dev:23050] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* require drb/eq.rb by defaultseki2004-02-261-4/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi-lib.rb, lib/getopts.rb, lib/importenv.rb, lib/parsearg.rb:nobu2004-02-254-4/+4
| | | | | | | | | | | warn with caller position. * test/rss/test_content.rb, test/rss/test_dublincore.rb, test/rss/test_syndication.rb, test/rss/test_trackback.rb: use cgi instead of cgi-lib. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb (test_fnmatch): test for dir.c:1.108.nobu2004-02-241-10/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e