diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-13 09:18:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-13 09:18:05 +0000 |
commit | 3ac0ec4ecdea849143ed64e8935e6675b341e44b (patch) | |
tree | fe18c8213610bfdbca51b687133caf5ab297b882 /test/ruby/test_parse.rb | |
parent | 287d2adab0ce45018ada9941ce4eaf67ba6a4d3a (diff) | |
download | ruby-3ac0ec4ecdea849143ed64e8935e6675b341e44b.tar.gz |
test/ruby: better assertions
* test/ruby: use better assertions instead of mere assert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r-- | test/ruby/test_parse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index db6281f620..863d379096 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -826,7 +826,7 @@ x = __ENCODING__ def test_all_symbols x = Symbol.all_symbols assert_kind_of(Array, x) - assert(x.all? {|s| s.is_a?(Symbol) }) + assert_empty(x.reject {|s| s.is_a?(Symbol) }) end def test_is_class_id |