Created
September 30, 2012 17:23
-
-
Save marcusramberg/3807739 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git i/lib/UV.pm w/lib/UV.pm | |
index d7962ee..75f62f5 100644 | |
--- i/lib/UV.pm | |
+++ w/lib/UV.pm | |
@@ -6,6 +6,9 @@ our $VERSION = '0.1'; | |
XSLoader::load __PACKAGE__, $VERSION; | |
+use constant READABLE => 1; | |
+use constant WRITABLE => 2; | |
+ | |
1; | |
__END__ | |
diff --git i/t/handles.t w/t/handles.t | |
index 8808c0d..abc05aa 100644 | |
--- i/t/handles.t | |
+++ w/t/handles.t | |
@@ -30,6 +30,7 @@ use UV; | |
UV::run(); | |
+ is scalar(@{UV::handles()}), 0; | |
is scalar(@{$handles}), 2; | |
is scalar(@{$handles->[0]}), 4; | |
is_deeply $handles->[0]->[0], { ref => 1, active => 1, type => UV::TIMER(), closing => 0 }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment