summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge changes between r11913 and r11943 from ruby_1_8.knu2007-02-282-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@11944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_iterate): need to PUSH_ITER in proper order.matz2007-01-311-0/+12
| | | | | | | | | | [ruby-core:10125] * test/ruby/test_iterator.rb (TestIterator::test_block_given_within_iterator): add new test. [ruby-core:10125] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c (strscan_do_scan): should set kcode option before ↵aamine2007-01-101-0/+13
| | | | | | | | | | | match. [ruby-dev:29914] * test/strscan/test_stringscanner.rb: test it. * re.c: export kcode_set_option and kcode_reset_option (with "rb_" prefix). * intern.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge RDoc updates from matzruby 11502, 11503, 11504drbrain2007-01-071-2/+115
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge 11443, 11444 and 11445 from trunk.drbrain2006-12-311-0/+148
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: accept NOMODSEQ. [ruby-core:9002]shugo2006-11-041-0/+11
| | | | | | | (backported from HEAD) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_call0): fixed bug of zsuper with both of opt and rest.usa2006-10-311-0/+17
| | | | | | | | | fixed: [ruby-list:42928] * test/ruby/test_super.rb: add tests to check above bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest, test/digest/test_digest.rb: Merge from trunk:knu2006-10-251-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Introduce versioning in Digest::Base API, and prefix C constants with RUBY_ and C type names with rb_ to avoid name clash in writing extensions. - Introduce Digest::Class and Digest::Instance for ease of implementing subclasses and add-ons. - Digest::Instance module requires and assumes that any instance be resettable and clonable. An instance method #new() is added so digest instances work just like digest classes. - The constructor does no longer take an initial string to feed; digest() and hexdigest() now do, instead. This allows digest classes to take their own hashing parameters. - Make some changes to digest() and hexdigest() class methods, which now take extra arguments, which are passed through to the constructor in an internal call. - Add #digest_length/size/length() and #block_length(), - Add the Digest::SHA2 class to wrap up SHA2 variants: SHA256, SHA384 and SHA512, hoping this module would make a decent example of a digest subclass written in Ruby. - Rip BubbleBabble support out of the base class and have a separate module named digest/bubblebabble. - Remove RD documents in favor of newly written and embedded RDoc documentation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/dir.rb (Collector::Dir#collect): prependnobu2006-10-121-6/+23
| | | | | | | | | | | | | base directory to load path. * lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): should use the given File-like interface, but not File directly. * test/testunit/collector/test_dir.rb (TestDir::FileSystem): implement File-like methods correctly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/optparse/test_getopts.rb: changed the class name of test casenobu2006-10-031-1/+1
| | | | | | | to get rid of conflict with test_optparse.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/optparse/test_getopts.rb: added short and long tests.nobu2006-09-261-2/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.(no author)2006-09-261-0/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use assert_same instead of assert_equal.akr2006-09-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookies): newgotoyuzo2006-09-081-0/+31
| | | | | | | | | method to parse multiple cookies per Set-Cookie header. Thanks to Aaron Patterson <aaron_patterson at speakeasy.net>. [ruby-core:08802] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (TestProcess#test_rlimit_nofile):akr2006-07-311-1/+5
| | | | | | | | setrlimit may fail with EINVAL. reported by MIYAMUKO Katsuyuki. [ruby-dev:29174] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httprequest.rb (WEBrick::HTTPReuqest#parse_uri): improvegotoyuzo2006-07-311-0/+58
| | | | | | | for the value of IPv6 address in the Host: header field. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* restore (wrongly) removed testsaamine2006-07-261-3/+74
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: sync with HEAD (rev 1.132).aamine2006-07-261-80/+36
| | | | | | | | | | * lib/net/http.rb (Net::HTTP#post, request_post, request): should set Content-Type: x-www-form-urlencoded by default. * lib/net/http.rb (Net::HTTPHeader#content_type): should return nil when there's no Content-Type. * lib/net/http.rb (Net::HTTPHeader#sub_type): should return nil when there's no sub Content-Type (e.g. "Content-Type: text"). * lib/net/http.rb (Net::HTTPHeader#type_params): wrongly failed when there's no Content-Type. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c: sync with HEAD (rev 1.25).aamine2006-07-261-0/+71
| | | | | | | * ext/strscan/strscan.c (strscan_do_scan): StringScanner.new("").scan(//) should return "". [ruby-Bugs:4361] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't compare struct sockaddr directly.akr2006-07-241-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_unix.rb: disabled on cygwin.akr2006-07-231-1/+1
| | | | | | | reported by Kouhei Yanagita. [ruby-dev:29080] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_float.rb (TestFloat::test_strtod): update test tomatz2006-07-181-5/+0
| | | | | | | conform strtod change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a note for cygwin empty UDP packet problem.akr2006-07-011-2/+6
| | | | | | | This commit is a result of hacks at the CodeFest Akihabara 2006 hosted by FSIJ. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_nonblock.rb: add timeout to send/receiveakr2006-07-011-2/+5
| | | | | | | | | | an empty UDP packet. [ruby-dev:28820] This commit is a result of hacks at the CodeFest Akihabara 2006 hosted by FSIJ. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_unix.rb: test_seqpacket_pair removed.akr2006-06-281-18/+0
| | | | | | | [ruby-dev:28846] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use fork to isolate rlimit effect.akr2006-06-211-7/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rss/test_parser.rb: split parser tests into ...kou2006-06-203-631/+625
| | | | | | | | * test/rss/test_parser_1.0.rb: ... RSS 1.0 parsing tests and ... * test/rss/test_parser_2.0.rb: ... RSS 2.0 parsing tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***gotoyuzo2006-06-201-4/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: add check for OBJ_NAME_do_all_sorted.gotoyuzo2006-06-201-5/+33
| | | | | | | | | | | | | | | | | | | * ext/openssl/ossl_cipher.c (ossl_s_ciphers): new method OpenSSL::Cipher.ciphers. it returns all the cipher names. * ext/openssl/lib/openssl/cipher.rb: - add constants AES128, AES192, AES256. [ruby-dev:28610] - reimplement without eval() * ext/openssl/lib/openssl/digest.rb: reimplement without eval(). * test/openssl/test_cipher.rb, test_digest: fix about reimplemented features. * sample/openssl/cipher.rb: rewrite all. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rss/test_image.rb: shared name space configuration.kou2006-06-181-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: improved ignore_unknown_elementkou2006-06-182-4/+50
| | | | | | | | | | | | | | | | | | | handling. RSS::NotExpectedTagError provides tag URI. * lib/rss/parser.rb: ditto. * lib/rss/0.9.rb: ditto. * lib/rss/1.0.rb: ditto. * lib/rss/content.rb: ditto. * lib/rss/dublincore.rb: ditto. * lib/rss/image.rb: ditto. * lib/rss/syndication.rb: ditto. * lib/rss/taxonomy.rb: ditto. * lib/rss/trackback.rb: ditto. * test/rss/rss-assertions.rb: checked URI of not expected tag too. * test/rss/test_parser.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: fixed typo: except -> expectkou2006-06-182-4/+4
| | | | | | | | | * lib/rss/parser.rb: ditto. * test/rss/rss-assertions.rb: ditto. * test/rss/test_parser.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: RSS::Element#calc_indent became to be deprecated.kou2006-06-182-28/+0
| | | | | | | | | | | | | | * lib/rss/0.9.rb: ditto. * lib/rss/1.0.rb: ditto. * lib/rss/image.rb: ditto. * lib/rss/taxonomy.rb: ditto. * lib/rss/trackback.rb: ditto. * test/rss/test_1.0.rb: removed RSS::Element.indent_size tests. * test/rss/test_2.0.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (bsock_recv_nonblock): new methodakr2006-06-172-35/+36
| | | | | | | | | | BasicSocket#recv_nonblock. (udp_recvfrom_nonblock): renamed from ip_recvfrom_nonblock. IPSocket#recvfrom_nonblock is moved to UDPSocket#recvfrom_nonblock. (unix_recvfrom_nonblock): removed. UNIXSocket#is removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb: backport from 1.9.akr2006-06-171-3/+22
| | | | | | | (Kernel#Pathname): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (Hash#merge, Enumerable#sort_by): removed.kou2006-06-173-2/+43
| | | | | | | | | | | | | | | | | | | | * lib/rss/rss.rb (RSS::RootElementMixin#to_xml): added. [ruby-talk:197284] We can convert RSS version easily like the following: rss10 = RSS::Parser.parse(File.read("1.0.rdf")) File.open("2.0.rss", "w") {|f| f.print(rss10.to_xml("2.0"))} * test/rss/test_1.0.rb: added #to_xml test. * test/rss/test_2.0.rb: ditto. * test/rss/rss-testcase.rb: added some helper methods that generates sample RSS 2.0. * sample/rss/convert.rb: added a sample script to convert RSS format. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb (Kernel#funcall): removed.kou2006-06-1710-205/+251
| | | | | | | | | | | | | | | | | | | | | | | * lib/rss/parser.rb (Kernel.URI): removed. * lib/rss/maker/: supported xxx.new_yyy do |yyy| yyy.zzz = zzz ... end style and this style became the style of the recommendation. Old style yyy = xxx.new_yyy yyy.zzz = zzz ... is supported too but this style isn't recommended. [ruby-talk:197284] * test/rss/test_*maker*.rb: used new recommended style. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou2006-06-172-5/+15
| | | | | | | | | | * lib/rss/rss.rb: added backward compatibility codes. * lib/rss/parser.rb: ditto. * test/rss/test_parser.rb: ditto. * test/rss/test_2.0.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou2006-06-1714-103/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/rss/rss.rb: improved type conversion. * lib/rss/1.0.rb: ditto. * lib/rss/0.9.rb: ditto. * lib/rss/2.0.rb: ditto. * lib/rss/image.rb: ditto. * lib/rss/syndication.rb: ditto. * test/rss/test_2.0.rb: added type conversion tests. * test/rss/test_accessor.rb: ditto. * test/rss/test_to_s.rb: ditto. * test/rss/test_syndication.rb: ditto. * test/rss/test_setup_maker_2.0.rb: ditto. * test/rss/test_setup_maker_1.0.rb: ditto. * test/rss/test_setup_maker_0.9.rb: ditto. * test/rss/test_maker_sy.rb: ditto. * test/rss/test_maker_image.rb: ditto. * test/rss/test_maker_2.0.rb: ditto. * test/rss/test_maker_0.9.rb: ditto. * test/rss/test_image.rb: ditto. * test/rss/test_maker_1.0.rb: use assert instead of assert_equal. * test/rss/rss-assertions.rb: improved type conversion assertions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou2006-06-173-65/+28
| | | | | | | | | | * test/rss/test_2.0.rb: added RSS 2.0 tests. * test/rss/rss-assertions.rb: extended XML stylesheet assertion. * lib/rss/0.9.rb: added initialize method. * test/rss/test_1.0.rb: cleanup. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou2006-06-171-0/+13
| | | | | | | | | | | | | | * lib/rss/parser.rb: added entity handling type predicate. * lib/rss/rexmlparser.rb: ditto. * lib/rss/xmlparser.rb: ditto. * lib/rss/xmlscanner.rb: ditto. * lib/rss/xmlscanner.rb: more robust entity handling. * test/rss/test_parser.rb: added an entity handling test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou2006-06-177-70/+79
| | | | | | | | * lib/rss/: use #__send__ instead of #send. * test/rss/: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou2006-06-171-2/+2
| | | | | | | * test/rss/test_taxonomy.rb: use #reject directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou2006-06-175-11/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/rss/maker/taxonomy.rb: implemented taxonomy module for RSS Maker. * lib/rss/taxonomy.rb: supported RSS Maker. * lib/rss/maker.rb: added taxonomy module support. * lib/rss/rss.rb: adjusted to other element API. * lib/rss/1.0.rb: adjusted to other element API but backward compatibility is reserved. * lib/rss/0.9.rb: ditto. * test/rss/test_maker_taxo.rb: added test case for taxonomy module for RSS Maker. * test/rss/test_setup_maker_1.0.rb: added tests for taxo:topic. * test/rss/test_setup_maker_1.0.rb: added backward compatibility test. * test/rss/test_setup_maker_0.9.rb: ditto. * test/rss/test_setup_maker_2.0.rb: ditto. * test/rss/rss-testcase.rb: added convenience method for setting up taxo:topic. * test/rss/rss-assertions.rb: added assertion for taxo:topic. * sample/rss/blend.rb: followed new API. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou2006-06-171-9/+21
| | | | | | | | | * lib/rss/rss.rb: fixed a indentation bug. * lib/rss/taxonomy.rb: fixed <taxo:topic> #to_s bug. * test/rss/test_taxonomy.rb: added a #to_s test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou2006-06-172-2/+3
| | | | | | | | | | * lib/rss/1.0.rb: added convenience method 'resources'. * lib/rss/taxonomy.rb: ditto. * test/rss/rss-assertions.rb: added test for 'resources'. * test/rss/test_taxonomy.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou2006-06-171-24/+12
| | | | | | | | * lib/rss/taxonomy.rb: implemented taxonomy module. * test/rss/test_taxonomy.rb: added tests for taxonomy support. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss, test/rss: backported from trunk. (2005-11-16 - now)kou2006-06-171-1/+1
| | | | | | | | * lib/rss/rss.rb (RSS::VERSION): 0.1.5 -> 0.1.6. * test/rss/test_version.rb (RSS::TestVersion#test_version): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add RLIMIT_NOFILE testakr2006-06-151-1/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* give dummy argument for Process.getrlimit and rescue TypeError.akr2006-06-151-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e