summaryrefslogtreecommitdiff
path: root/test/ruby/test_settracefunc.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-15 21:12:07 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-15 21:12:07 +0000
commit23872de6bcaea805b2bce6ed70e2fb0db4ec8e2a (patch)
tree11e972455afde8542c6410b47cc3cf6aa7ea05f2 /test/ruby/test_settracefunc.rb
parent9bff94e4d06b43a0f4079152821ae40717d157ae (diff)
* 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_7@16056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_settracefunc.rb')
-rw-r--r--test/ruby/test_settracefunc.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb
index 39e1b03..14d6679 100644
--- a/test/ruby/test_settracefunc.rb
+++ b/test/ruby/test_settracefunc.rb
@@ -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)