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

Wed Nov 17 23:42:40 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>

* test/ruby/test_settracefunc.rb: added.  [ruby-dev:24884]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nahi 2004-11-17 14:49:07 +00:00
parent 970ce679ff
commit 10e6c73f3c
2 changed files with 5 additions and 1 deletions

View file

@ -18,7 +18,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
assert_equal(["call", 4], events.shift) # call foo
event, lineno = events.shift # return
assert_equal("return", event)
assert_equal(4, lineno) # [history] it could not be expected in 1.8
assert_not_equal(4, lineno)# it should be 4 but cannot be expected in 1.8
assert_equal(["line", 13], events.shift) # line "a"
assert_equal(["line", 14], events.shift) # line "set_trace_func nil"
assert_equal(["c-call", 14], events.shift) # c-call set_trace_func