test.pl 396 B

123456789101112131415161718192021222324
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More;
  5. my $rc = 0;
  6. $rc = plan tests => 4;
  7. diag("Returned: " . sprintf("%d", $rc));
  8. $rc = ok(1, 'Test with no hash');
  9. diag("Returned: $rc");
  10. $rc = ok(1, 'Test with one # hash');
  11. diag("Returned: $rc");
  12. $rc = ok(1, 'Test with # two # hashes');
  13. diag("Returned: $rc");
  14. $rc = ok(1, 'Test with ## back to back hashes');
  15. diag("Returned: $rc");