Debian Codegraph @

t/say.t

raw symbols SCIP
1 use Test::More qw(no_plan);
2 use strict;
3 use warnings;
4
5 use autobox::Core;
6
7 my $message = "This is an important message";
8 my @array = qw(this is an important message);
9
10 SKIP: {
11 my $has_test_output = eval { require Test::Output };
12
13 skip "Don't have Test::Output", 1, if not $has_test_output;
14 Test::Output::stdout_is( sub { $message->say }, $message . "\n" );
15 Test::Output::stdout_is( sub { @array->say }, "@array\n" );
16 }
17
18 # We need at least one test so that Test::Harness doesn't complain in
19 # case we had to skip above
20
21 ok 1;
22