test.pl 218 B

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