test.pl 260 B

12345678910111213141516
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More;
  5. my $rc = 0;
  6. plan tests => 2;
  7. $rc = diag("A diagnostic message");
  8. diag("Returned: $rc");
  9. ok(1, 'test 1') or diag "ok() failed, and shouldn't";
  10. ok(0, 'test 2') or diag "ok() passed, and shouldn't";