summaryrefslogtreecommitdiff
path: root/test/ruby/test_m17n.rb
AgeCommit message (Collapse)Author
2008-05-19* bootstraptest/test_knownbug.rb: move solved tests.ko1
* bootstraptest/test_eval.rb, test_literal.rb, test_syntax.rb, test_thread.rb: ditto. * test/ruby/test_m17n.rb, test_proc.rb, test_sprintf.rb, test_string.rb, test/ruby/test_struct.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-15* test/ruby/test_string.rb: add tests to achieve over 90% testmame
coverage of string.c. * test/ruby/test_m17n.rb: ditto. * test/ruby/test_symbol.rb: ditto. * test/ruby/test_pack.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-15* string.c (tr_find): String#delete returned wrong result when multiplemame
utf-8 arguments are passed. * test/ruby/test_m17n.rb (test_delete): add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-28* proc.c (method_name): should return symbols instead of strings.matz
[ruby-dev:34531] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-08* string.c (search_nonascii): Use VALUE instead of unsigned longnaruse
because VALUE can be the fastest unsigned integer type. On LLP64 unsigned long isn't the fastest. * string.c (str_strlen): ditto. * string.c (str_utf8_nth): ditto. * string.c (count_utf8_lead_bytes_with_ulong): ditto. * string.c (count_utf8_lead_bytes_with_word): renamed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-05* string.c (count_utf8_lead_bytes_with_ulong): fix shift size.naruse
[ruby-dev:33993] * string.c (str_utf8_nth) fix wrong counting. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-28* encoding.c (enc_find): check type of argument and convert to Stringnaruse
if it is StringValue. [ruby-cvs:22866] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22commit miss. orzusa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22sorry, typo.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22* test/ruby/test_m17n.rb: add tests.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-18* string.c (rb_str_each_line): fix newline size.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-17add tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-17add a test for [ruby-dev:33826]akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-17* re.c (rb_reg_quote): return US-ASCII string consistently.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-14add a test for named class in regexp.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-14more tests for embedding regexps.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-14* re.c (rb_reg_preprocess_dregexp): use non-preprocessed regexp sourceakr
for result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08add a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08add a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-29add tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-29* insns.def (toregexp): generate a regexp from strings instead of oneakr
string. * re.c (rb_reg_new_ary): defined for toregexp. it concatenates strings after each string is preprocessed. * compile.c (compile_dstr_fragments): split from compile_dstr. (compile_dstr): call compile_dstr_fragments. (compile_dregx): defined for dynamic regexp. (iseq_compile_each): use compile_dregx for dynamic regexp. [ruby-dev:33400] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-28 * parse.y (reg_fragment_setenc_gen): US-ASCII script special code.usa
* parse.y (reg_fragment_check_len, reg_compile_gen): no need such trick. [ruby-dev:33399] * test/ruby/test_m17n.rb (test_regexp_usacii_literal): add tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-28* test/ruby/test_m17n.rb: refine some tests, and add op symbol test.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-28* test/ruby/test_m17n.rb (test_str_String): update test.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-28 * parse.y (parser_str_new): encoding of UTF-8 literal string inusa
US-ASCII script is UTF-8. [ruby-dev:33406] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-28 * test/ruby/test_m17n.rb (test_magic_comment): add test.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-26add tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-26add a test for [ruby-dev:33377].akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-26add a test for [ruby-dev:33406].akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-25* string.c (rb_str_usascii_new{,2}: defined.naruse
(rb_str_new): set US-ASCII and ENC_CODERANGE_7BIT when empty string. * encoding.c (rb_usascii_encoding, rb_usascii_encindex): defined. (rb_enc_inspect, enc_name, rb_locale_charmap, rb_enc_name_list_i): use rb_str_ascii_new. * array.c (recursive_join, inspect_ary): ditto. * object.c (nil_to_s, nil_inspect, true_to_s, false_to_s, rb_mod_to_s): ditto. * hash.c (inspect_hash, rb_hash_inspect, rb_f_getenv, env_fetch, env_clear, env_to_s, env_inspect): ditto. * numeric.c (flo_to_s, int_chr, rb_fix2str): ditto. * bignum.c (rb_big2str): ditto. * file.c (rb_file_ftype, rb_file_s_dirname, rb_file_s_extname, file_inspect_join, Init_file): ditto. * test/ruby/test_ruby_m17n.rb: add checks for encoding of string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-24* test/ruby/test_m17n.rb: commit miss.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-24 * test/ruby/test_m17n.rb: follow to the following changes.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23split UTF-16 tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23add a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23add a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-22* configure.in (MINIRUBY): remove -I$(EXTOUT)/$(arch) frommatz
MINIRUBY since miniruby might not be able to load DLL. * test/ruby/test_m17n.rb: move tests from bootstrap test. * encoding.c (enc_find): should check name if ASCII compatible. * string.c (rb_str_end_with): should check character boundary. * encoding.c (rb_enc_compatible): encoding must be ASCII compatible before checking ENC_CODERANGE_7BIT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-20add a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-20add a test for each_char.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-20add a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-20add a assertion message.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-20add a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-19update encdump for UTF-16.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-19fix a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-19add a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-18* sprintf.c (rb_str_format): set result encoding for wider width.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-18* test/ruby/test_m17n.rb (test_str_dump): added test forkazu
String#dump. [ruby-dev:33142] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-18 * test_m17n.rb: Regexp switch `s' should mean Windows-31J, as wells asusa
`-Ks'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11add tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10add a test.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-07* encoding.c (rb_enc_internal_get_index): extracted fromakr
rb_enc_get_index. (rb_enc_internal_set_index): extracted from rb_enc_associate_index * include/ruby/encoding.h (ENCODING_SET): work over ENCODING_INLINE_MAX. (ENCODING_GET): ditto. (ENCODING_IS_ASCII8BIT): defined. (ENCODING_CODERANGE_SET): defined. * re.c (rb_reg_fixed_encoding_p): use ENCODING_IS_ASCII8BIT. * string.c (rb_enc_str_buf_cat): use ENCODING_IS_ASCII8BIT. * parse.y (reg_fragment_setenc_gen): use ENCODING_IS_ASCII8BIT. * marshal.c (has_ivars): use ENCODING_IS_ASCII8BIT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e