PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use Test::More tests => 5;
  5. BEGIN { use_ok('ret_by_value') }
  6. require_ok('ret_by_value');
  7. my $tst = ret_by_value::get_test();
  8. isa_ok($tst, 'ret_by_value::test');
  9. is($tst->{myInt}, 100);
  10. is($tst->{myShort}, 200);