PageRenderTime 25ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Perl | 18 lines | 12 code | 5 blank | 1 comment | 0 complexity | c441b0e2eb20bd6a85d20f81b15de62f 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 => 7;
  5. BEGIN { use_ok('varargs') }
  6. require_ok('varargs');
  7. is(varargs::test("Hello"), "Hello");
  8. my $f = new varargs::Foo("BuonGiorno", 1);
  9. is($f->{str}, "BuonGiorno");
  10. $f = new varargs::Foo("Greetings");
  11. is($f->{str}, "Greetings");
  12. is($f->test("Hello"), "Hello");
  13. is(varargs::Foo::statictest("Grussen", 1), "Grussen");