File: perl-56-like.t

package info (click to toggle)
libmoo-perl 2.003004-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 808 kB
  • sloc: perl: 2,284; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 325 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use B ();
BEGIN { delete $B::{perlstring} };
use Moo::_strictures;
use Test::More;
use Test::Fatal;

{
  package MyClass;
  use Moo;
  my $string = join('', "\x00" .. "\x7F");
  has foo => (is => 'ro', default => $string);
  ::is +__PACKAGE__->new->foo, $string,
    "can quote arbitrary strings 5.6 style";
}

done_testing;