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

7 commits

Author SHA1 Message Date
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
kazu
77f987376c * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): Improve tests of Symbol#to_proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-22 15:23:01 +00:00
kazu
29934eed9d add a test of Symbol#to_proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-22 13:04:10 +00:00
kazu
bf52f99b6b * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15 07:46:38 +00:00
nobu
4542f21a42 * proc.c (rb_proc_new), vm.c (invoke_block): removed u3.state magic.
[ruby-core:14310]

* test/ruby/test_symbol.rb (test_to_proc): a test from Frederick
  Cheung <frederick.cheung AT gmail.com>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 04:55:37 +00:00
nobu
6df4e18914 * parse.y (rb_symname_p): fixed wrong validation. [ruby-dev:28047]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-19 14:33:11 +00:00
nobu
fbeb59ac28 * object.c (sym_inspect), parse.y (parser_yylex, rb_symname_p): check
if valid as a symbol name more strictly.  [ruby-dev:27478]

* test/ruby/test_symbol.rb: tests for [ruby-core:03573].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-22 04:30:59 +00:00