File: say.t

package info (click to toggle)
libperl5i-perl 2.13.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 996 kB
  • ctags: 343
  • sloc: perl: 6,259; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 325 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl

use perl5i::latest;

use Test::More;
use Test::Output;

{
    my %hash = (foo => 23, bar => 42);
    my $as_string = join " ", map { "$_ => $hash{$_}" } keys %hash;
    stdout_is { %hash->say   } "$as_string\n", "%hash->say";
    stdout_is { %hash->print } $as_string,     "%hash->print";
}

done_testing();