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 | 57b6d6032cc57aec145ba7e1c6052ece11e8baeb (patch) | |
tree | ca8ec19df1fb4f1a30b5eec2880f80fcde3b4107 /test/-ext- | |
parent | ab6a38c9e5cff35e06d9c0e46587bfb285f819e1 (diff) |
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
Diffstat (limited to 'test/-ext-')
-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 |