1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_settracefunc.rb (TestSetTraceFunc#test_event):

Fix tests to reflect the following changes: r15833, r15759.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2008-04-15 21:11:37 +00:00
parent 19a9fcba3c
commit f78129fc6a
2 changed files with 8 additions and 3 deletions

View file

@ -53,12 +53,12 @@ class TestSetTraceFunc < Test::Unit::TestCase
events.shift) # 1 + 2
assert_equal(["line", 23, :test_event, TestSetTraceFunc],
events.shift) # if b == 3
assert_equal(["line", 23, :test_event, TestSetTraceFunc],
events.shift) # if b == 3
assert_equal(["c-call", 23, :==, Fixnum],
events.shift) # b == 3
assert_equal(["c-return", 23, :==, Fixnum],
events.shift) # b == 3
assert_equal(["line", 23, :test_event, TestSetTraceFunc],
events.shift) # if b == 3
assert_equal(["line", 24, :test_event, TestSetTraceFunc],
events.shift) # case b
assert_equal(["line", 25, :test_event, TestSetTraceFunc],
@ -130,7 +130,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
events = bar
set_trace_func(nil)
assert_equal(["line", 11, :bar, TestSetTraceFunc], events.shift)
assert_equal(["return", 7, :bar, TestSetTraceFunc], events.shift)
assert_equal(["return", 11, :bar, TestSetTraceFunc], events.shift)
assert_equal(["line", 131, :test_event, TestSetTraceFunc], events.shift)
assert_equal(["c-call", 131, :set_trace_func, Kernel], events.shift)
assert_equal([], events)