File: perl-56-like.t

package info (click to toggle)
libmoo-perl 2.002005-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 856 kB
  • ctags: 192
  • sloc: perl: 2,561; 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;