Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor addition to test_basic.rb.

  • Loading branch information...
commit cf37536bcd8d4d4777c00badce43d878bddef59a 1 parent 1f622a0
@ibc authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/test_basic.rb
View
5 test/test_basic.rb
@@ -44,10 +44,15 @@ def test_02_exception_manager
end
def test_03_num_handles
+ assert_equal 0, AE.num_handles
+
AE.run do
+ assert_equal 0, AE.num_handles
AE.add_timer(0.001) { assert_equal 2, AE.num_handles }
pt1 = AE::PeriodicTimer.new(0.002) { assert_equal 1, AE.num_handles ; pt1.stop ; assert_equal 0, AE.num_handles }
end
+
+ assert_equal 0, AE.num_handles
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.