Glib

 view release on metacpan or  search on metacpan

t/4.t  view on Meta::CPAN

# derive from a C object in perl, and derive from a Perl object in perl.
# checks order of execution of initializers and finalizers, so the code
# gets a little hairy.
#
use strict;
use warnings;

use Glib qw(:constants);

# From 7.t.  Do we need a test helper class?
sub ok($$;$) {
    my($test, $num, $name) = @_;

    my $out = $test ? "ok" : "not ok";
    $out .= " $num" if $num;
    $out .= " - $name" if defined $name;

    print "$out\n";

    return $test;
}

t/7.t  view on Meta::CPAN



my apologies for the extreme density and ugliness of this code.

=cut

use Test::More import => ['diag'];

print "1..36\n";

sub ok($$;$) {
    my($test, $num, $name) = @_;

    my $out = $test ? "ok" : "not ok";
    $out .= " $num" if $num;
    $out .= " - $name" if defined $name;

    print "$out\n";

    return $test;
}



( run in 0.589 second using v1.01-cache-2.11-cpan-5b529ec07f3 )