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_7@16056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2008-04-15 21:12:07 +00:00
parent 9bff94e4d0
commit 23872de6bc
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Wed Apr 16 06:11:49 2008 Akinori MUSHA <knu@iDaemons.org>
* test/ruby/test_settracefunc.rb (TestSetTraceFunc#test_event):
Fix tests to reflect the following changes: r15833, r15759.
Wed Apr 16 02:09:14 2008 Kouhei Sutou <kou@cozmixng.org>
* lib/xmlrpc/client.rb: fix cookie handling. [ruby-dev:34403]

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)