akr
e3562616ad
add a test for [ruby-dev:34828].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24 01:48:21 +00:00
ko1
39fcd1cdf2
* bootstraptest/test_knownbug.rb: move solved tests.
...
* 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-19 05:20:21 +00:00
mame
b8118e9645
* test/ruby/test_string.rb: add tests to achieve over 90% test
...
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 14:37:18 +00:00
akr
f587eab23c
* eval.c (rb_obj_respond_to): check the result of respond_to? method
...
by RTEST.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-04 05:30:08 +00:00
nobu
2188bbced3
* bignum.c (rb_cstr_to_inum): treat successive underscores as
...
nondigit. [ruby-dev:34089]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-19 05:36:43 +00:00
matz
840723e523
test/test_{string,sprintf}.rb: updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-01 01:22:45 +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
akr
e61e1f6234
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-18 06:18:14 +00:00
akr
d77ddf33ae
add tests for sub/gsub with hash.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-18 03:51:34 +00:00
akr
35cb0f807b
* string.c (rb_str_times): reduce loop overhead.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-17 00:18:16 +00:00
akr
fe068da879
add a test for String#end_with?.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23 18:14:28 +00:00
akr
fc5a26c2d4
* string.c (rb_str_buf_append): fix append itself.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-07 22:57:00 +00:00
akr
4f6c04dc52
add a test: "y".count("a\\-z") should be 0.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-01 07:04:28 +00:00
nobu
de3f2adb53
* string.c (rb_str_resize): embeds if ptr is null. [ruby-dev:32819]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-31 14:27:20 +00:00
akr
dc980095ec
add succ tests from the succ document.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 09:53:08 +00:00
akr
9595af4ad5
* string.c (rb_str_shared_replace): make str noembed after free.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 11:52:15 +00:00
akr
f4592d7bb0
* re.c (rb_reg_expr_str): use \xHH instead of \OOO.
...
* regerror.c (to_ascii): ditto.
(onig_snprintf_with_pattern): ditto.
(onig_snprintf_with_pattern): ditto.
* string.c (rb_str_inspect): ditto.
(rb_str_dump): ditto.
* parse.y (parser_yylex): ditto.
* ruby.c (proc_options): ditto.
* file.c (rb_f_test): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-09 21:48:05 +00:00
nobu
01c24a2f78
* test/ruby/test_string.rb (test_splice!): tests for [ruby-dev:31665].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-28 06:19:11 +00:00
akr
863e7e95f2
refine tests for shift.
...
more tests for string to integer conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-19 17:04:53 +00:00
ko1
a0abd3c4b1
* test/ruby/test_string.rb: ("foo" == :foo) and ("foo" === :foo)
...
should be false.
* ChangeLog: fix last messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-08 13:28:03 +00:00
ko1
a3e1b1ce7e
* Merge YARV
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-31 15:02:22 +00:00
akr
2bd403488d
test String#sum for bits=0..7.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-03 06:09:54 +00:00
akr
129c02057e
add test for String#sum.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-03 06:02:55 +00:00