diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-02 05:43:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-02 05:43:58 +0000 |
commit | d6a1662008885e4d9140cf13beeaafc2f78901e0 (patch) | |
tree | ca8ec19df1fb4f1a30b5eec2880f80fcde3b4107 | |
parent | 0768cab6e30189e1abf0671e1cd5910d365ec971 (diff) | |
download | ruby-d6a1662008885e4d9140cf13beeaafc2f78901e0.tar.gz |
test_iseq_load.rb: refine test_require_integration
* test/-ext-/iseq_load/test_iseq_load.rb (test_require_integration):
assert with diff.
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/-ext-/iseq_load/test_iseq_load.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/-ext-/iseq_load/test_iseq_load.rb b/test/-ext-/iseq_load/test_iseq_load.rb index d193e37a4f..87b28fa56a 100644 --- a/test/-ext-/iseq_load/test_iseq_load.rb +++ b/test/-ext-/iseq_load/test_iseq_load.rb @@ -102,16 +102,16 @@ class TestIseqLoad < Test::Unit::TestCase f = File.expand_path(__FILE__) # $(top_srcdir)/test/ruby/test_....rb 3.times { f = File.dirname(f) } - Dir[File.join(f, 'ruby', '*.rb')].each do |f| - iseq = ISeq.compile_file(f) - orig = iseq.to_a.freeze + all_assertions do |all| + Dir[File.join(f, 'ruby', '*.rb')].each do |f| + all.for(f) do + iseq = ISeq.compile_file(f) + orig = iseq.to_a.freeze - loaded = ISeq.iseq_load(orig).to_a - if loaded != orig - warn f - warn diff(orig, loaded) + loaded = ISeq.iseq_load(orig).to_a + assert loaded == orig, proc {"ISeq unmatch:\n"+diff(orig, loaded)} + end end - #assert_equal orig, loaded end end end |