#!/usr/bin/env perl
-use Test::More qw(no_plan);
+use Test::More;
{
my $package = qq{
has id => (
isa => 'Str',
is => 'ro',
- default => 017600,
+ default => 017600,
);
no Moose;
has id => (
isa => 'Str',
is => 'ro',
- default => 0xFF,
+ default => 0xFF,
);
no Moose;
has id => (
isa => 'Str',
is => 'ro',
- default => '0xFF',
+ default => '0xFF',
);
no Moose;
has id => (
isa => 'Str',
is => 'ro',
- default => '0 but true',
+ default => '0 but true',
);
no Moose;
$@ ? ::fail($@) : ::pass('017600 octal default works');
my $obj = Test::Moose::Go::Boom5->new;
::is( $obj->id, '0 but true', 'value is still the same' );
-}
\ No newline at end of file
+}
+
+done_testing;