1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

20 commits

Author SHA1 Message Date
akr
759c6d2a89 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-13 17:16:03 +00:00
mame
1951ceeed7 * test/ruby/test_io_m17n.rb: remove a duplicative method.
* test/ruby/test_utf16.rb: rename a conflicting method name.

* test/ruby/test_array.rb: ditto.

* test/ruby/test_file_exhaustive.rb: ditto.

* test/ruby/test_hash.rb: ditto.

* test/ruby/test_env.rb: ditto.

* test/ruby/test_fixnum.rb: ditto.

* test/ruby/test_rational.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-13 15:57:22 +00:00
akr
fe2a671fdb add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-06 08:04:18 +00:00
akr
7c9e815d94 test updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-03 08:54:31 +00:00
matz
2d97d3ddac * string.c (rb_str_chomp_bang): now works on UTF-16.
* string.c (tr_setup_table): negation should work on non ASCII
  compatible strings as well.

* string.c (rb_str_split_m): awk split should work on non ASCII
  compatible strings as well.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-29 13:33:26 +00:00
matz
daa622aed0 * time.c (time_strftime): format should be ascii compatible.
* parse.y (rb_intern3): non ASCII compatible symbols.

* re.c (rb_reg_regsub): add encoding check.

* string.c (rb_str_chomp_bang): ditto.

* test/ruby/test_utf16.rb (TestUTF16::test_chomp): raises exception.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-29 09:19:15 +00:00
akr
bcf1e2ac12 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-18 00:08:01 +00:00
akr
c2c32b50b1 add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-17 16:50:49 +00:00
akr
7eeba5f440 * encoding.c (rb_enc_compatible): empty strings are always compatible.
* string.c (rb_enc_cr_str_buf_cat): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-16 09:02:12 +00:00
akr
1df7138a0d add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-30 16:42:15 +00:00
akr
84fe384383 * string.c (rb_str_succ): use wrapped character as a carry for
ASCII incompatible encoding.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-30 05:29:37 +00:00
akr
44cfd58dc5 * enc/utf_16be.c (UTF16_IS_SURROGATE_FIRST): avoid branch.
(UTF16_IS_SURROGATE_SECOND): ditto.
  (UTF16_IS_SURROGATE): defined.
  (utf16be_mbc_enc_len): validation implemented.

* enc/utf_16le.c (UTF16_IS_SURROGATE_FIRST): avoid branch.
  (UTF16_IS_SURROGATE_SECOND): ditto.
  (UTF16_IS_SURROGATE): defined.
  (utf16le_mbc_enc_len): validation implemented.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-30 03:49:54 +00:00
akr
3970d67185 add a test for chomp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-26 21:23:59 +00:00
akr
b9c18bdcdd * re.c (rb_reg_preprocess): force fixed encoding when ASCII
incompatible source string.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-26 21:01:52 +00:00
akr
b45fa58f6d add a test for Regexp.union.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-25 03:58:32 +00:00
akr
968e404220 * string.c (rb_enc_cr_str_buf_cat): ASCII incompatible encoding is
not compatible with any other encoding.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-24 02:17:26 +00:00
akr
bbb7151467 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23 09:25:17 +00:00
akr
e3604a9e46 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23 08:14:30 +00:00
akr
562d6e8cd5 change class name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23 07:59:56 +00:00
akr
f2d84ac87b split UTF-16 tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23 07:58:48 +00:00