PageRenderTime 24ms CodeModel.GetById 13ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/perl5/ret_by_value_runme.pl

#
Perl | 12 lines | 9 code | 2 blank | 1 comment | 0 complexity | 9c0624f0c01646a825897f5ee0837c8c MD5 | raw file
 1#!/usr/bin/perl
 2use strict;
 3use warnings;
 4use Test::More tests => 5;
 5BEGIN { use_ok('ret_by_value') }
 6require_ok('ret_by_value');
 7
 8my $tst = ret_by_value::get_test();
 9isa_ok($tst, 'ret_by_value::test');
10is($tst->{myInt}, 100);
11is($tst->{myShort}, 200);
12