diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-08 03:30:56 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-08 03:30:56 +0000 |
| commit | e04c75dd68a6c8d0c5fc82610c24d65819b654cc (patch) | |
| tree | f4ca463a03a8ac0b5705df03ecf5a17e27de6f14 /test/ripper | |
| parent | af0bffcf0b49005dbc8a097891e924f910c554ab (diff) | |
| download | ruby-e04c75dd68a6c8d0c5fc82610c24d65819b654cc.tar.gz ruby-e04c75dd68a6c8d0c5fc82610c24d65819b654cc.tar.xz ruby-e04c75dd68a6c8d0c5fc82610c24d65819b654cc.zip | |
* array.c (rb_ary_nitems): add the block feature to Array#nitems.
suggested by Bertram Scharpf <lists@bertram-scharpf.de> in
[ruby-talk:134083].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ripper')
| -rw-r--r-- | test/ripper/test_parser_events.rb | 2 | ||||
| -rw-r--r-- | test/ripper/test_scanner_events.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index 445321a49..2ca825bea 100644 --- a/test/ripper/test_parser_events.rb +++ b/test/ripper/test_parser_events.rb @@ -30,7 +30,7 @@ class TestRipper_ParserEvents < Test::Unit::TestCase def test_void_stmt assert_equal '[void()]', parse('') - assert_equal '[void()]', parse(';;') + assert_equal '[void()]', parse('; ;') end def test_var_ref diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 0beb8c09f..05c2d37f3 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -640,7 +640,7 @@ class TestRipper_ScannerEvents < Test::Unit::TestCase assert_equal %w(;), scan('semicolon', ';') assert_equal %w(; ;), - scan('semicolon', ';;') + scan('semicolon', '; ;') assert_equal %w(; ; ;), scan('semicolon', 'nil;nil;nil;') assert_equal %w(; ; ;), |
