X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=t%2Fbasic.t;h=24913dc95950eb1761be90fa535efba7e20941b5;hp=07d77efdf55d76cf60ae5f3901fb0fc242095de0;hb=fe6c9a7f0f8b12f9424ed3aa7ea6c4a783581ce9;hpb=a76f2f60f38f21af50f878ea9dbd7f0670edf9f3 diff --git a/t/basic.t b/t/basic.t index 07d77ef..24913dc 100644 --- a/t/basic.t +++ b/t/basic.t @@ -25,4 +25,10 @@ is($remote->increment, 1, 'Increment to 1'); is($remote->counter, 1, 'Counter at 1'); +my $x = 0; + +is($remote->call_callback(27, sub { $x++ }), 27, "Callback ok"); + +is($x, 1, "Callback called callback"); + done_testing;