diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-04-25 00:52:16 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-04-25 00:52:16 +0900 |
commit | dd5b6c71c6cf157406e5ead4dfc6188d563bc268 (patch) | |
tree | b355bdde84bd54c61d3801732cd1043af85a0f9e | |
parent | 6061aa0ac1b4d43d107d47ba4d2eecbda77959a1 (diff) | |
download | ruby-dd5b6c71c6cf157406e5ead4dfc6188d563bc268.tar.gz |
Fix typos [ci skip]
-rw-r--r-- | test/ruby/test_settracefunc.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index 2cf25260cb..61c9dd0d7d 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -1067,7 +1067,7 @@ class TestSetTraceFunc < Test::Unit::TestCase }.enable{ 3.times{ next - } # 3 times b_retun + } # 3 times b_return } # 1 time b_return assert_equal 4, n @@ -1984,7 +1984,7 @@ class TestSetTraceFunc < Test::Unit::TestCase ## error - # targetted TP and targetted TP + # targeted TP and targeted TP ex = assert_raise(ArgumentError) do tp = TracePoint.new(:line){} tp.enable(target: code1){ @@ -1993,7 +1993,7 @@ class TestSetTraceFunc < Test::Unit::TestCase end assert_equal "can't nest-enable a targeting TracePoint", ex.message - # global TP and targetted TP + # global TP and targeted TP ex = assert_raise(ArgumentError) do tp = TracePoint.new(:line){} tp.enable{ @@ -2002,7 +2002,7 @@ class TestSetTraceFunc < Test::Unit::TestCase end assert_equal "can't nest-enable a targeting TracePoint", ex.message - # targetted TP and global TP + # targeted TP and global TP ex = assert_raise(ArgumentError) do tp = TracePoint.new(:line){} tp.enable(target: code1){ @@ -2011,7 +2011,7 @@ class TestSetTraceFunc < Test::Unit::TestCase end assert_equal "can't nest-enable a targeting TracePoint", ex.message - # targetted TP and disable + # targeted TP and disable ex = assert_raise(ArgumentError) do tp = TracePoint.new(:line){} tp.enable(target: code1){ @@ -2032,7 +2032,7 @@ class TestSetTraceFunc < Test::Unit::TestCase end assert_equal [:tp2, :tp1, :___], events - # succss with two tracepoints (global/targeting) + # success with two tracepoints (global/targeting) events = [] tp1 = TracePoint.new(:line){|tp| events << :tp1} tp2 = TracePoint.new(:line){|tp| events << :tp2} @@ -2044,7 +2044,7 @@ class TestSetTraceFunc < Test::Unit::TestCase end assert_equal [:tp1, :tp1, :tp1, :tp1, :tp2, :tp1, :___], events - # succss with two tracepoints (targeting/global) + # success with two tracepoints (targeting/global) events = [] tp1 = TracePoint.new(:line){|tp| events << :tp1} tp2 = TracePoint.new(:line){|tp| events << :tp2} |