summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* * io.c (fptr_finalize): must not use FILE after fclose().nobu2004-11-291-0/+22
| | | | | | | [ruby-dev:24985] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::NotSetError): added.kou2004-11-284-121/+150
| | | | | | | | | | | * lib/rss/maker/{1.0,0.9,2.0}.rb: changed RSS Maker to raise RSS::NotSetError if required values of maker.channel are not set. * test/rss/test_maker_{1.0,0.9,2.0}.rb: changed tests to check RSS Maker raises or not. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7401 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
* * lib/rss/{0.9,1.0,2.0,trackback,xml-stylesheet}.rb: addedkou2004-11-273-0/+792
| | | | | | | | | | | #setup_maker. * test/rss/test_setup_maker_*.rb: added tests for #setup_maker. * lib/rss/maker/base.rb(RSS::Maker::Items#max_size=): supported output item size limitation. * sample/rss/blend.rb: added sample for RSS Maker. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/0.9.rb: supported RSS::Maker.make("0.91"). Now,kou2004-11-272-25/+31
| | | | | | | | | "0.9" is just alias of "0.91." * test/rss/test_maker_0.9.rb: make("0.9") -> maker("0.91"). * test/rss/test_to_s.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7390 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
* * test/runner.rb (CROSS_COMPILING): need to require rbconfig.rb beforeeban2004-11-201-1/+2
| | | | | | | using CROSS_COMPILNG. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/xmlrpc/test_webrick_server.rb : move `requrie "webrick/https"'eban2004-11-191-1/+1
| | | | | | | into #setup_http_server mohtod to avoid soap test errors. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/0.9.rb (RSS::Maker::RSS09::Image#have_required_values):kou2004-11-191-37/+3
| | | | | | | | | changed /rss/channel/image to be optional. [ruby-Bugs:1047] * test/rss/test_maker_0.9.rb: added tests for the above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (RSS::VERSION): 0.1.0 -> 0.1.1.kou2004-11-1912-67/+840
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/rss: #to_s used #tag. * test/rss/test_to_s.rb: added. * lib/rss/maker.rb (RSS::Maker.make): changed API. It's not received modules which is used as the second argument. * lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#alternate): changed return value type which is not String but Boolean. * lib/rss/2.0.rb (RSS::Rss::Channel#ttl): changed return value type which is not String but Integer. * lib/rss/0.9.rb (RSS::Rss::Channel): <skipDays> has <day>s and <skipHours> has <hour>s. * lib/rss/maker/0.9.rb (RSS::Maker::RSS09::Channel): ditto. * lib/rss/0.9.rb (RSS::Rss::Channel::Item): <item> has <category>s. * lib/rss/maker/2.0.rb (RSS::Maker::Rss20::Channel::Item): ditto. * lib/rss/2.0.rb (RSS::Rss::Channel): <channel> has <category>s. * lib/rss/maker/2.0.rb (RSS::Maker::RSS20::Channel): ditto. * lib/rss/trackback.rb: parent element has <trackback:about>s. * lib/rss/maker/trackback.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/dir.rb: add support for directory nameeban2004-11-191-1/+1
| | | | | | | | | with -p/-x options. * test/testunit/collector/test_dir.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_s_set_completion_append_character):shugo2004-11-191-0/+9
| | | | | | | accept nil. [ruby-core:03765] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7316 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
* * hash.c (rb_f_getenv): prohibit for $SAFE=4. [ruby-dev:24908]matz2004-11-183-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7311 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
* * ext/readline/readline.c: check $SAFE.shugo2004-11-181-0/+57
| | | | | | | * test/readline/test_readline.rb: added tests for readline. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7309 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
* * lib/xmlrpc/parser.rb, test/xmlrpc/test_features.rb: fixed "assinging to ↵mneumann2004-11-171-0/+5
| | | | | | constants" warnings git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/ssl_server.rb: try to listen ports from 20443 to 20542gotoyuzo2004-11-173-38/+39
| | | | | | | | | | while failed in getting a TCPServer. * test/openssl/test_x509name.rb: remove version dependence about nickname of OIDs. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added new test case (which spawn off a webrick XML-RPC server)mneumann2004-11-162-0/+128
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * fixed test cases so that they can be run from any directorymneumann2004-11-164-22/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * applied patch by MoonWolf <moonwolf@moonwolf.com> to allow parsingmneumann2004-11-162-11/+27
| | | | | | | | | datetime.iso8601 (e.g. 20041105T01:15:23Z). * added test case git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * imported and refactored original test casesmneumann2004-11-1515-0/+444
| | | | | | | | | | | | * added methods XMLRPC::XMLParser.each_installed_parser and XMLRPC::XMLWriter.each_installed_writer to simply original test cases * use Object#allocate instead of defining an empty #initialize * module XMLRPC::Marshallable is now only used for tagging git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Sun Nov 14 08:46:33 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>nahi2004-11-131-2/+8
| | | | | | | | | * test/logger/test_logger.rb: Logger just expects Logger#datetime_format to be used for Time#strftime independently of locale. [ruby-dev:24828] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7260 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 DRb::ExtServManager#uri=.seki2004-11-081-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rss/*.rb: removed tab width configuration headers.kou2004-11-0312-22/+30
| | | | | | | | | | | | | | * test/rss/test_maker_{0.9,1.0}.rb: sort -> do_sort. * lib/rss/maker/*.rb: changed API to RSS version independence. * lib/rss/maker/base.rb (RSS::Maker::XMLStyleSheets::XMLStyleSheet): checked required (pseudo) attributes. * lib/rss/maker/base.rb (RSS::Maker::Items): sort -> do_sort. * lib/rss/rss.rb (RSS::BaseModel.install_date_element): avoided warning. * lib/rss/0.9.rb (RSS::Rss#textinput): added convenience method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/base.rb: changed xml-stylesheet's API of RSS Makerkou2004-11-011-8/+21
| | | | | | | | | | to like item's one. * lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#guess_type): fixed regular expression bug. * test/rss/test_maker_xml-stylesheet.rb: updated tests for xml-stylesheet. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/*.rb: added RSS Maker.kou2004-10-3110-1/+1674
| | | | | | | * test/rss/test_maker_*.rb: added tests for RSS Maker. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): NODE_XSTR should pass copy of literal string.matz2004-10-301-1/+1
| | | | | | | | | | | * array.c (rb_ary_update): a[n,m]=nil no longer works as element deletion. * enum.c (enum_sort_by): protect continuation jump in. [ruby-dev:24642] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7145 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
* * lib/rss/: untabified.kou2004-10-1610-1223/+1223
| | | | | | | | * test/rss/: untabified. * lib/rss/0.9.rb (RSS::Rss#to_s): inent -> indent. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss: supported prety print.kou2004-10-161-1/+12
| | | | | | | * test/rss/test_1.0.rb: added test for calculating default indent size. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_x509store.cgotoyuzo2004-10-151-0/+32
| | | | | | | | | | | | (ossl_x509stctx_initialize): setup OpenSSL::X509::StoreContext with ossl_x509stctx_* functions instead of X509_STORE_CTX_*. (ossl_x509store_set_time): add OpenSSL::X509::Store#time=. (ossl_x509stctx_set_time): add OpenSSL::X509::StoreContext#time=. * test/openssl/ossl_x509store.rb: test certificate validity times. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_scanner_events.rb: test location information.aamine2004-10-091-14/+40
| | | | | | | * test/ripper/test_scanner_events.rb: test \n between comments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7026 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
* * ext/ripper/Makefile.dev: removed.aamine2004-09-233-449/+413
| | | | | | | | | | | | * ext/ripper/ripper.rb.in: moved to lib/ripper/core.rb.in. * ext/ripper/lib/ripper/core.rb: new file. * ext/ripper/lib/ripper/core.rb.in: new file. * ext/ripper/tools/generate-ripper_rb.rb: change comment. * test/ripper/*.rb: on_scan removed. * test/ripper/*.rb: event name changed: on__ -> on_. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_scanner_events.rb: tokens must be reordered.aamine2004-09-201-3/+4
| | | | | | | * ext/ripper/lib/ripper/tokenizer.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_scanner_events.rb: test #lineno and #column.aamine2004-09-201-19/+59
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: adjust lineno and columns for multi-line strings.aamine2004-09-201-6/+8
| | | | | | | | | | | | | * parse.y [ripper]: delay heredocument events until seeing end-of-line. * parse.y [ripper]: event on__heredoc_contentn -> on__tstring_content. * ext/ripper/eventids2.c: ditto. * ext/ripper/lib/ripper.rb: sync with eventids2.c. * test/ripper/test_scanner_events.rb: test it. * ext/ripper/tools/generate-ripper_rb.rb: show basename of input. * ext/ripper/Makefile.dev: support objdir build. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y [ripper]: unify old_lex_p and token_head.aamine2004-09-201-4/+7
| | | | | | | | * test/ripper/test_scanner_events.rb: now \r\n is saved correctly. * parse.y: new macro lex_goto_eol() for next change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_scanner_events.rb: test spaces before heredoc mark.aamine2004-09-191-30/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_delete): element comparison might change arraymatz2004-09-171-1/+1
| | | | | | | | | | | | | | | | size. [ruby-dev:24273] * parse.y: make ruby parser reentrant. merge ripper parser to the real one. this change makes ruby require bison. * file.c (rb_file_truncate): clear stdio buffer before truncating the file. [ruby-dev:24191] * ext/digest/digest.c: use rb_obj_class() instead of CLASS_OF which might return singleton class. [ruby-dev:24202] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_x509name.c (ossl_x509name_to_s): add optionalgotoyuzo2004-09-131-0/+99
| | | | | | | | | | | | | | | | | | second argument to specify the output format (see also X509_NAME_print_ex). * ext/openssl/ossl_x509name.c (ossl_x509name_init): new constants: OpenSSL::X509::Name::COMPAT, OpenSSL::X509::Name::RFC2253, OpenSSL::X509::ONELINE, OpenSSL::X509::MULTILINE. * ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name::RFC2253DN): new module to provide the parse for RFC2253 DN format. * ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name.parse_rfc2253): new method to parse RFC2253 DN format. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper: ripper extention added.aamine2004-09-123-0/+1759
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ext/ripper/MANIFEST: new file. * ext/ripper/README: new file. * ext/ripper/depend: new file. * ext/ripper/extconf.rb: new file. * ext/ripper/eventids2.c: new file. * ext/ripper/ripper.rb.in: new file. * ext/ripper/lib/ripper.rb: new file. * ext/ripper/test/check-event-arity.rb: new file. * ext/ripper/test/check-event-coverage.sh: new file. * ext/ripper/test/check-scanner-event-coverage.rb: new file. * ext/ripper/test/list-called-events.rb: new file. * ext/ripper/test/src_rb: new file. * ext/ripper/test/validate.rb: new file. * ext/ripper/tools/generate-eventids1.rb: new file. * ext/ripper/tools/generate-param-macros.rb: new file. * ext/ripper/tools/generate-ripper_rb.rb: new file. * ext/ripper/tools/list-parse-event-ids.rb: new file. * ext/ripper/tools/list-scan-event-ids.rb: new file. * ext/ripper/tools/preproc.rb: new file. * ext/ripper/tools/strip.rb: new file. * test/ripper: ripper tests added. * test/ripper/dummyparser.rb: new file. * test/ripper/test_parser_events.rb: new file. * test/ripper/test_scanner_events.rb: new file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (mkdir_p): should pass mode argument to Dir.mkdir. ↵aamine2004-09-101-0/+8
| | | | | | | | | [ruby-dev:24242] * test/fileutils/test_fileutils.rb: test it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e