mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
ab6a38c9e5
commit
57b6d6032c
1 changed files with 8 additions and 8 deletions
|
@ -102,16 +102,16 @@ class TestIseqLoad < Test::Unit::TestCase
|
||||||
f = File.expand_path(__FILE__)
|
f = File.expand_path(__FILE__)
|
||||||
# $(top_srcdir)/test/ruby/test_....rb
|
# $(top_srcdir)/test/ruby/test_....rb
|
||||||
3.times { f = File.dirname(f) }
|
3.times { f = File.dirname(f) }
|
||||||
Dir[File.join(f, 'ruby', '*.rb')].each do |f|
|
all_assertions do |all|
|
||||||
iseq = ISeq.compile_file(f)
|
Dir[File.join(f, 'ruby', '*.rb')].each do |f|
|
||||||
orig = iseq.to_a.freeze
|
all.for(f) do
|
||||||
|
iseq = ISeq.compile_file(f)
|
||||||
|
orig = iseq.to_a.freeze
|
||||||
|
|
||||||
loaded = ISeq.iseq_load(orig).to_a
|
loaded = ISeq.iseq_load(orig).to_a
|
||||||
if loaded != orig
|
assert loaded == orig, proc {"ISeq unmatch:\n"+diff(orig, loaded)}
|
||||||
warn f
|
end
|
||||||
warn diff(orig, loaded)
|
|
||||||
end
|
end
|
||||||
#assert_equal orig, loaded
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue