Permalink
Browse files

Minor addition to test_basic.rb.

  • Loading branch information...
1 parent 1f622a0 commit cf37536bcd8d4d4777c00badce43d878bddef59a @ibc committed May 3, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/test_basic.rb
View
@@ -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

0 comments on commit cf37536

Please sign in to comment.